From 103acdd15d2e91ece05d27368961e6f02f930f3d Mon Sep 17 00:00:00 2001 From: tping Date: Mon, 23 Nov 2020 17:43:43 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=94=AF=E4=BB=98=E9=80=9A=E7=9F=A5=20?= =?UTF-8?q?=E5=B0=8F=E6=95=B0=E7=82=B9=E5=90=8E=E9=9D=A2.00?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/Spend/lists.html | 7 +++++++ Application/Common/Api/GameApi.class.php | 1 + 2 files changed, 8 insertions(+) diff --git a/Application/Admin/View/Spend/lists.html b/Application/Admin/View/Spend/lists.html index 7bfdae2c8..47eec6745 100644 --- a/Application/Admin/View/Spend/lists.html +++ b/Application/Admin/View/Spend/lists.html @@ -296,6 +296,11 @@ + + 补单 @@ -304,6 +309,8 @@ 补单 + +
diff --git a/Application/Common/Api/GameApi.class.php b/Application/Common/Api/GameApi.class.php index db49090d7..93af900b8 100644 --- a/Application/Common/Api/GameApi.class.php +++ b/Application/Common/Api/GameApi.class.php @@ -46,6 +46,7 @@ class GameApi { if (isset($pay_data['deduction_amount']) && $pay_data['deduction_amount'] > 0) { $pay_data['cost'] += $pay_data['deduction_amount']; } + $pay_data['cost'] = number_format($pay_data['cost'], 2, '.', ''); $md5_sign = md5($pay_data['pay_order_number'].$pay_data['cost']."1".$pay_data['extend'].$game_data['game_key']); $data = array( From 34716394891fd49c90ea7bcbf24d374f5aa06734 Mon Sep 17 00:00:00 2001 From: tping Date: Mon, 23 Nov 2020 17:59:59 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=94=AF=E4=BB=98=E9=80=9A=E7=9F=A5=20?= =?UTF-8?q?=E8=A1=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/RepairController.class.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/RepairController.class.php b/Application/Admin/Controller/RepairController.class.php index 87df477e9..28615da36 100644 --- a/Application/Admin/Controller/RepairController.class.php +++ b/Application/Admin/Controller/RepairController.class.php @@ -31,8 +31,19 @@ class RepairController extends ThinkController { 'create_time' => time(), 'type' => 1 // 补单 ]); - + + $sp = $spend->where([ + 'pay_order_number' => $orderNo + ])->find(); $rr = $spend->where(array('pay_order_number'=>$orderNo))->save(array('pay_game_status'=>1)); + if ($sp['extend']) { + $spend->where([ + 'extend' => $sp['extend'], + 'pay_status' => 1, + 'user_id' => $sp['user_id'] + ])->save(array('pay_game_status' => 1)); + } + //操作日志 addOperationLog(array( "op_type"=>1, From 73f8c1637949339ff5db2527c42bc3c57ca48bab Mon Sep 17 00:00:00 2001 From: chenzhi Date: Thu, 26 Nov 2020 17:32:13 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/FinanceController.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/FinanceController.class.php b/Application/Admin/Controller/FinanceController.class.php index 6245f8322..0434f8e5c 100644 --- a/Application/Admin/Controller/FinanceController.class.php +++ b/Application/Admin/Controller/FinanceController.class.php @@ -1004,6 +1004,10 @@ class FinanceController extends ThinkController if (!empty(I("game_id"))) { $map['game_id'] = I("game_id"); } + if(empty(I("game_id")) && !empty(I("game_name"))){ + $map['game_name'] = array('like','%'.I("game_name").'%');; + } + if (!empty(I('user_account'))) { $map['user_account'] = array('like','%'.I("user_account").'%'); } @@ -1071,7 +1075,10 @@ class FinanceController extends ThinkController $totalMap['s.game_id'] = $map['game_id']; unset($totalMap['game_id']); } - + if ($map['game_name']) { + $totalMap['s.game_name'] = $map['game_name']; + unset($totalMap['game_name']); + } $totalData = D('spend')->totalGameStatistics($totalMap, false); $sumCash = $totalData['cash_count'] ?? 0;