From 4e7904c3de2ce7092e9a4fcc04b8bcaefd339169 Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Tue, 15 Oct 2019 14:51:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=9F=A5=E8=AF=A2=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E6=96=B9=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/Controller/QueryController.class.php | 16 ++++++++++------ .../Home/View/default/Query/recharge.html | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 44712687c..733bca8e6 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -84,11 +84,15 @@ class QueryController extends BaseController $map['tab_spend.pay_time'] = ['between', [strtotime(I('begtime')), strtotime(I('endtime')) + 86399]]; } - if (I('pay_way') !== null && I('pay_way') !== '') { - if (I('pay_way') == 2) { - $map['tab_spend.pay_way'] = ['in', '2,3,4']; - } else { - $map['tab_spend.pay_way'] = I('pay_way'); + if (isset($_REQUEST['pay_way']) && $_REQUEST['pay_way'] !== '') { + $payWay = intval(I('pay_way')); + + if (in_array($payWay, array_keys(QueryController::$payWay))) { + if ($payWay == 2) { + $map['tab_spend.pay_way'] = ['in', '2,3,4']; + } else { + $map['tab_spend.pay_way'] = $payWay; + } } } @@ -668,7 +672,7 @@ class QueryController extends BaseController 'grand_id' => $promote['id'], ]; $ids = M('promote', 'tab_')->where($map)->getField('id', true); - + $subPromotes = M('promote', 'tab_')->field(['id', 'account', 'real_name'])->where(['parent_id' => $promote['id']])->select(); $games = $this->getGamesByPromote($promote); diff --git a/Application/Home/View/default/Query/recharge.html b/Application/Home/View/default/Query/recharge.html index 56ea8a9ab..5a3fa6638 100644 --- a/Application/Home/View/default/Query/recharge.html +++ b/Application/Home/View/default/Query/recharge.html @@ -142,7 +142,7 @@