From 36cc5fc5b95804b23ef3387961a3830dfa9d3ce4 Mon Sep 17 00:00:00 2001 From: tping Date: Fri, 17 Jan 2020 15:16:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=B8=81=E6=8A=B5?= =?UTF-8?q?=E6=89=A3=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/BaseController.class.php | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/Application/Callback/Controller/BaseController.class.php b/Application/Callback/Controller/BaseController.class.php index 5209a8eb..52c71dff 100644 --- a/Application/Callback/Controller/BaseController.class.php +++ b/Application/Callback/Controller/BaseController.class.php @@ -187,21 +187,23 @@ class BaseController extends Controller { $r = $game->game_pay_notify($data,1); if ($r == 'success') { foreach ($notice_order as $v) { - $result = M('spend',"tab_")->where([ - 'form_params' => [ - 'pay_order_number' => $v - ] - ])->setField([ - 'pay_game_status' => 1 - ]); - // 通知后台 - try { - post_async($url, [ - 'pay_order_number' => $v, - ]); - } catch(\Exception $e) { - - } + $this->record_logs("game_notice_cp:".$v); + + $result = M('spend',"tab_")->where([ + 'pay_order_number' => $v + ])->setField([ + 'pay_game_status' => 1 + ]); + // 通知后台 + try { + post_async($url, [ + 'form_params' => [ + 'pay_order_number' => $v + ], + ]); + } catch(\Exception $e) { + + } } } From fccb0c0d79106f52a5318e02f3b86b3d90c7f133 Mon Sep 17 00:00:00 2001 From: tping Date: Fri, 17 Jan 2020 15:23:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=B8=81=E6=8A=B5?= =?UTF-8?q?=E6=89=A3=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Callback/Controller/BaseController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Callback/Controller/BaseController.class.php b/Application/Callback/Controller/BaseController.class.php index 52c71dff..43b9bc87 100644 --- a/Application/Callback/Controller/BaseController.class.php +++ b/Application/Callback/Controller/BaseController.class.php @@ -190,7 +190,8 @@ class BaseController extends Controller { $this->record_logs("game_notice_cp:".$v); $result = M('spend',"tab_")->where([ - 'pay_order_number' => $v + 'pay_order_number' => $v, + 'pay_status' => 1 ])->setField([ 'pay_game_status' => 1 ]);