From 3c9a8285372f10f312e3fb75157b217ab2bc2cc5 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Fri, 10 Jan 2020 11:03:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E7=BB=93=E7=AE=97=E5=AE=98?= =?UTF-8?q?=E6=96=B9=E6=B8=A0=E9=81=93=E6=A3=80=E7=B4=A2=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/QueryController.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/QueryController.class.php b/Application/Admin/Controller/QueryController.class.php index e6e9edc3e..a3c0ff00f 100644 --- a/Application/Admin/Controller/QueryController.class.php +++ b/Application/Admin/Controller/QueryController.class.php @@ -1015,8 +1015,9 @@ class QueryController extends ThinkController } $map = []; + setPowerPromoteIds($map,'root_id'); - if ($_REQUEST['promote_id']) { + if ($_REQUEST['promote_id']||$_REQUEST['promote_id']=='0') { $map['root_id'] = $_REQUEST['promote_id']; } @@ -1041,7 +1042,6 @@ class QueryController extends ThinkController ->order("my_time Desc") ->select(false); - setPowerPromoteIds($map,'root_id'); $count = M()->table('('.$data.') as a') ->field("my_time,pay_amount,game_id,game_names,promote_id,promote_account,a.company_relation,a.company_belong,CASE WHEN root_id is null THEN 0 ELSE root_id END as root_id,CASE WHEN account is null THEN '官方渠道' ELSE account END as account") @@ -1062,6 +1062,8 @@ class QueryController extends ThinkController ->group("my_time,game_names,root_id") ->order("my_time Desc") ->select(); +// var_dump($data);die(); + // dump($data);die(); $pagecount = M()->table('('.$count.') as a')->count();