From f6ecd6f0706f44db983c6c82c54af284d50ac6a9 Mon Sep 17 00:00:00 2001 From: tping Date: Tue, 17 Mar 2020 16:28:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=B8=81=E7=BB=91?= =?UTF-8?q?=E5=B8=81=E6=94=AF=E4=BB=98=E9=80=9A=E7=9F=A5task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sdk/Controller/PayH5Controller.class.php | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Application/Sdk/Controller/PayH5Controller.class.php b/Application/Sdk/Controller/PayH5Controller.class.php index 0f12a641..cf7b64e1 100644 --- a/Application/Sdk/Controller/PayH5Controller.class.php +++ b/Application/Sdk/Controller/PayH5Controller.class.php @@ -1105,7 +1105,18 @@ ADD COLUMN `pay_url` text NULL AFTER `check_sign`; } $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']); if ($r == 'success') { foreach ($notice_order as $v) { @@ -1114,8 +1125,21 @@ ADD COLUMN `pay_url` text NULL AFTER `check_sign`; ])->setField([ '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']; redirect($url); From f09195844af8e1415deb757e331ca9e093f4e09c Mon Sep 17 00:00:00 2001 From: tping Date: Tue, 17 Mar 2020 16:37:38 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Callback/Controller/BaseController.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Application/Callback/Controller/BaseController.class.php b/Application/Callback/Controller/BaseController.class.php index ea2289e5..200e1023 100644 --- a/Application/Callback/Controller/BaseController.class.php +++ b/Application/Callback/Controller/BaseController.class.php @@ -124,6 +124,7 @@ class BaseController extends Controller { $request['deduction_amount'] = 0; $request['pay_status'] = 1; $request["title"] = $d['props_name']; + $request['payed_time'] = time(); if ($d['deduction_amount'] > $bind_balance) $bb = 0;