From 4ac069e28a37a1e745c3f07c98b1ee3b92e7a69f Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Mon, 11 Nov 2019 11:27:23 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=B9=B3=E5=8F=B0->?= =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E7=AE=A1=E7=90=86->=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E6=98=8E=E7=BB=86--=E6=A3=80=E7=B4=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/FinanceController.class.php | 34 ++++++++++++++++--- .../View/default/Finance/settlementDtl.html | 27 +++++++++++++++ 2 files changed, 57 insertions(+), 4 deletions(-) diff --git a/Application/Home/Controller/FinanceController.class.php b/Application/Home/Controller/FinanceController.class.php index 6c95bea64..700835f96 100644 --- a/Application/Home/Controller/FinanceController.class.php +++ b/Application/Home/Controller/FinanceController.class.php @@ -160,7 +160,9 @@ class FinanceController extends BaseController $page = intval(I('get.p', 1)); $page = $page ? $page : 1; //默认显示第一页数据arraypage $row = intval(I('get.row', 10)); + $gameId = intval(I('game_id', 0)); $payOrderNumber = I('pay_order_number', ''); + $status = intval(I('status', 0)); $nowTime = date('Y-m-d'); $initBegTime = date('Y-m-d', strtotime('-6 day', strtotime($nowTime))); $initBegTime = empty(I('begtime')) ? $initBegTime : I('begtime'); @@ -172,13 +174,16 @@ class FinanceController extends BaseController $parameter['p'] = $page; $parameter['row'] = $row; + $parameter['game_id'] = $gameId; $parameter['pay_order_number'] = $payOrderNumber; + $parameter['status'] = $status; $parameter['begtime'] = $initBegTime; $parameter['endtime'] = $initEndTime; $data = []; $count = 0; if (intval($endTime - $begTime) / (24 * 3600) <= 31) { + $withdrawIds = []; $map['chain'] = ['like', $this->loginPromote['chain'] . $this->loginPromote['id'] . '/%']; $ids = M('promote', 'tab_')->where($map)->getField('id', true); $ids[] = $this->loginPromote['id']; @@ -186,10 +191,29 @@ class FinanceController extends BaseController $map = []; $map['promote_id'] = ['in', $ids]; + $map['pay_status'] = 1; $map['pay_time'] = ['between', [$begTime, $endTime]]; + if (!empty($gameId)) { + $map['game_id'] = $gameId; + } if (!empty($payOrderNumber)) { $map['pay_order_number'] = $payOrderNumber; } + if (isset($_GET['status'])) { + if ($status == -2) { + $map['selle_status'] = 0; + } else { + $withdrawMap['promote_id'] = $this->loginPromote['id']; + $withdrawMap['status'] = $status; + $withdrawIds = M('withdraw', 'tab_')->where($withdrawMap)->getField('id', true); + + if (empty($withdrawIds)) { + $map = '1 = 2'; + } else { + $map['withdraw_id'] = ['in', $withdrawIds]; + } + } + } $data = $model->field('pay_order_number,game_name,user_account,promote_account,pay_amount,pay_way,if(selle_ratio >= 0,selle_ratio,0) as selle_ratio,pay_time,selle_status,pay_status,withdraw_id') ->where($map) @@ -199,10 +223,12 @@ class FinanceController extends BaseController $count = $model->where($map)->count(); //提现状态 - $withdrawIds = [0]; - foreach ($data as $key => $value) { - if ($value['withdraw_id'] > 0 && !in_array($value['withdraw_id'], $withdrawIds)) { - $withdrawIds[] = $value['withdraw_id']; + if (empty($withdrawIds)) { + $withdrawIds = [0]; + foreach ($data as $key => $value) { + if ($value['withdraw_id'] > 0 && !in_array($value['withdraw_id'], $withdrawIds)) { + $withdrawIds[] = $value['withdraw_id']; + } } } $withdrawStatus = M('withdraw', 'tab_') diff --git a/Application/Home/View/default/Finance/settlementDtl.html b/Application/Home/View/default/Finance/settlementDtl.html index b38ea9876..d62cd8937 100644 --- a/Application/Home/View/default/Finance/settlementDtl.html +++ b/Application/Home/View/default/Finance/settlementDtl.html @@ -85,10 +85,37 @@
+ + +
+ +
+
+ + +
+
From 486090ca0af0365a5b253154f09c77d7dedbf068 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Mon, 11 Nov 2019 11:40:37 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=B9=B3=E5=8F=B0->?= =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E7=AE=A1=E7=90=86--=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E6=8F=90=E7=A4=BA=E8=B0=83=E6=95=B4|?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=AE=A1=E7=90=86->=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2|=E6=B3=A8=E5=86=8C=E6=98=8E=E7=BB=86--?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Home/View/default/Finance/index.html | 2 +- .../Home/View/default/Finance/settlementDtl.html | 8 +++----- Application/Home/View/default/Query/recharge.html | 4 ++-- Application/Home/View/default/Query/register.html | 10 +++++----- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/Application/Home/View/default/Finance/index.html b/Application/Home/View/default/Finance/index.html index 3b5158da2..c85e547f4 100644 --- a/Application/Home/View/default/Finance/index.html +++ b/Application/Home/View/default/Finance/index.html @@ -127,7 +127,7 @@ return false; } if ((edate - sdate) > 2592000) { - layer.msg('时间间隔不能超过30天,请重新选择日期', {icon: 5}); + layer.msg('时间间隔不能超过31天,请重新选择日期', {icon: 5}); return false; } diff --git a/Application/Home/View/default/Finance/settlementDtl.html b/Application/Home/View/default/Finance/settlementDtl.html index d62cd8937..974d96336 100644 --- a/Application/Home/View/default/Finance/settlementDtl.html +++ b/Application/Home/View/default/Finance/settlementDtl.html @@ -85,9 +85,8 @@
- - + @@ -245,7 +243,7 @@ return false; } if ((edate - sdate) > 2592000) { - layer.msg('时间间隔不能超过30天,请重新选择日期', {icon: 5}); + layer.msg('时间间隔不能超过31天,请重新选择日期', {icon: 5}); return false; } diff --git a/Application/Home/View/default/Query/recharge.html b/Application/Home/View/default/Query/recharge.html index eb3ddf4a0..19e0db331 100644 --- a/Application/Home/View/default/Query/recharge.html +++ b/Application/Home/View/default/Query/recharge.html @@ -113,12 +113,12 @@
-
+
-
+
diff --git a/Application/Home/View/default/Query/register.html b/Application/Home/View/default/Query/register.html index fa1fb3357..1cdbd6b9f 100644 --- a/Application/Home/View/default/Query/register.html +++ b/Application/Home/View/default/Query/register.html @@ -38,33 +38,33 @@
-
+
-
+
-
+
-
+
-
+
From 98f43acc96a0814a5cad649ba148e4d13268a93e Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Mon, 11 Nov 2019 11:50:04 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=B9=B3=E5=8F=B0->?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=AE=A1=E7=90=86--=E6=A3=80=E7=B4=A2?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/View/default/Query/dailySummary.html | 2 +- .../Home/View/default/Query/recharge.html | 58 ++++++++----------- .../Home/View/default/Query/register.html | 46 ++++++--------- .../Home/View/default/Query/summary.html | 2 +- .../Home/View/default/Query/view_role.html | 4 +- 5 files changed, 48 insertions(+), 64 deletions(-) diff --git a/Application/Home/View/default/Query/dailySummary.html b/Application/Home/View/default/Query/dailySummary.html index 2f7e6c27f..520a43770 100644 --- a/Application/Home/View/default/Query/dailySummary.html +++ b/Application/Home/View/default/Query/dailySummary.html @@ -136,7 +136,7 @@ value="查询">
-
+