diff --git a/app/Service/PlayerRoleService.php b/app/Service/PlayerRoleService.php index cef49af..c124132 100644 --- a/app/Service/PlayerRoleService.php +++ b/app/Service/PlayerRoleService.php @@ -84,14 +84,14 @@ class PlayerRoleService extends Service $role->pipuid = $user->puid; $role->save(); - if ($role->game_id) { + if (in_array($role->game_id, [335, 336])) { Lanhuo::addRole([ - 'user_id' => 111, - 'server_id' => 1, - 'server_name' => '测试', - 'role_id' => '111', - 'role_name' => '测试', - 'role_level' => 23, + 'user_id' => $role->user_id, + 'server_id' => $role->server_id, + 'server_name' => $role->server_name, + 'role_id' => $role->role_id, + 'role_name' => $role->role_name, + 'role_level' => $role->role_level, 'profession_id' => '', // 职业ID 'profession_name' => '', // 职业名称 'power' => '', // 战力 diff --git a/app/Service/SpendService.php b/app/Service/SpendService.php index 0d99cbe..cde9707 100644 --- a/app/Service/SpendService.php +++ b/app/Service/SpendService.php @@ -37,7 +37,7 @@ class SpendService extends Service $spend->event_status = 1; $spend->save(); - // if (in_array($spend->game_id, [335, 336])) { + if (in_array($spend->game_id, [335, 336])) { Lanhuo::addOrder([ 'order_code' => $spend->pay_order_number, 'user_id' => $spend->user_id, @@ -51,7 +51,7 @@ class SpendService extends Service 'pay_time' => date('Y-m-d H:i:s', $spend->spend_time), 'status' => $spend->pay_status, //支付状态(待支付 0 已支付 1 支付失败 2) ]); - // } + } } private function saveUserPlayDataCountBySpend(Spend $spend)