From 522409404288f900843d88df0f70c19c368ba7dd Mon Sep 17 00:00:00 2001 From: chenzhi Date: Thu, 29 Jul 2021 10:20:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=85=E5=80=BC=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/PlatformController.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Application/Admin/Controller/PlatformController.class.php b/Application/Admin/Controller/PlatformController.class.php index bacd17353..b5a3a1254 100644 --- a/Application/Admin/Controller/PlatformController.class.php +++ b/Application/Admin/Controller/PlatformController.class.php @@ -1162,15 +1162,14 @@ class PlatformController extends ThinkController if (!empty($_REQUEST['game_type'])) { $map['s.sdk_version'] = $_REQUEST['game_type']; } - + if (isMarketAdmin()) { $map['s.market_admin_id'] = is_login(); } else if (!empty($_REQUEST['admin_id'])) { $map['s.market_admin_id'] = $_REQUEST['admin_id']; - } else { - //为数据权限添加 - setPowerPromoteIds($map, 'tp1.id'); - } + } + setPowerPromoteIds($map, 'tp1.id'); + D("Spend")->addSubsiteWhere($map,"s"); $data = SM('promote', 'tab_')->alias('tp1') @@ -1184,6 +1183,7 @@ class PlatformController extends ThinkController ->order('count desc') ->select(); + //今日/本周/本月不变 $tmap = $map; if(isset($map['pay_time'])){