|
|
@ -1105,7 +1105,18 @@ ADD COLUMN `pay_url` text NULL AFTER `check_sign`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$game = new GameApi();
|
|
|
|
$game = new GameApi();
|
|
|
|
// Log::write("platform:".serialize($request));
|
|
|
|
$url = C('TASK_URL')."/game-event/recharge";
|
|
|
|
|
|
|
|
// 通知后台
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
post_async($url, [
|
|
|
|
|
|
|
|
'form_params' => [
|
|
|
|
|
|
|
|
'pay_order_number' => $request['pay_order_number']
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
} catch(\Exception $e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$r = $game->game_pay_notify($request, $request['code']);
|
|
|
|
$r = $game->game_pay_notify($request, $request['code']);
|
|
|
|
if ($r == 'success') {
|
|
|
|
if ($r == 'success') {
|
|
|
|
foreach ($notice_order as $v) {
|
|
|
|
foreach ($notice_order as $v) {
|
|
|
@ -1114,8 +1125,21 @@ ADD COLUMN `pay_url` text NULL AFTER `check_sign`;
|
|
|
|
])->setField([
|
|
|
|
])->setField([
|
|
|
|
'pay_game_status' => 1
|
|
|
|
'pay_game_status' => 1
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 通知后台
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
post_async($url, [
|
|
|
|
|
|
|
|
'form_params' => [
|
|
|
|
|
|
|
|
'pay_order_number' => $v
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
} catch(\Exception $e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$url = 'http://' . $_SERVER ['HTTP_HOST'] . "/sdk.php/Spend/pay_success3/orderno/".$request['pay_order_number'].'/game_id/'.$request['game_id'];
|
|
|
|
$url = 'http://' . $_SERVER ['HTTP_HOST'] . "/sdk.php/Spend/pay_success3/orderno/".$request['pay_order_number'].'/game_id/'.$request['game_id'];
|
|
|
|
|
|
|
|
|
|
|
|
redirect($url);
|
|
|
|
redirect($url);
|
|
|
|