master
elf 2 years ago
parent 1b01e9256c
commit c4afdb7ec3

@ -84,14 +84,14 @@ class PlayerRoleService extends Service
$role->pipuid = $user->puid; $role->pipuid = $user->puid;
$role->save(); $role->save();
if ($role->game_id) { if (in_array($role->game_id, [335, 336])) {
Lanhuo::addRole([ Lanhuo::addRole([
'user_id' => 111, 'user_id' => $role->user_id,
'server_id' => 1, 'server_id' => $role->server_id,
'server_name' => '测试', 'server_name' => $role->server_name,
'role_id' => '111', 'role_id' => $role->role_id,
'role_name' => '测试', 'role_name' => $role->role_name,
'role_level' => 23, 'role_level' => $role->role_level,
'profession_id' => '', // 职业ID 'profession_id' => '', // 职业ID
'profession_name' => '', // 职业名称 'profession_name' => '', // 职业名称
'power' => '', // 战力 'power' => '', // 战力

@ -37,7 +37,7 @@ class SpendService extends Service
$spend->event_status = 1; $spend->event_status = 1;
$spend->save(); $spend->save();
// if (in_array($spend->game_id, [335, 336])) { if (in_array($spend->game_id, [335, 336])) {
Lanhuo::addOrder([ Lanhuo::addOrder([
'order_code' => $spend->pay_order_number, 'order_code' => $spend->pay_order_number,
'user_id' => $spend->user_id, '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), 'pay_time' => date('Y-m-d H:i:s', $spend->spend_time),
'status' => $spend->pay_status, //支付状态(待支付 0 已支付 1 支付失败 2) 'status' => $spend->pay_status, //支付状态(待支付 0 已支付 1 支付失败 2)
]); ]);
// } }
} }
private function saveUserPlayDataCountBySpend(Spend $spend) private function saveUserPlayDataCountBySpend(Spend $spend)

Loading…
Cancel
Save