diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index a19c16544..1b91e0c76 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -2144,6 +2144,8 @@ class ExportController extends Controller $today=total(1); $week=total(2); $mounth=total(3); + //为数据权限添加 + setPowerPromoteIds($map); $data=$user ->field('fgame_name,fgame_id,date_format(FROM_UNIXTIME( register_time),"%Y-%m-%d") AS time, count(id) as count, count(IF(register_time '.$today.',1,null)) as today, @@ -2222,6 +2224,8 @@ class ExportController extends Controller $today=total(1); $week=total(2); $mounth=total(3); + //为数据权限添加 + setPowerPromoteIds($map); $data=$spend ->field('game_name,game_id,date_format(FROM_UNIXTIME(pay_time),"%Y-%m-%d") AS time, sum(pay_amount) as count, sum(IF(pay_time '.$today.',pay_amount,0)) as today, @@ -2298,6 +2302,8 @@ class ExportController extends Controller $today=total(1); $week=total(2); $mounth=total(3); + //为数据权限添加 + setPowerPromoteIds($map); $data=$user ->field('register_way,date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time, count(id) as count, count(IF(register_time '.$today.',1,null)) as today, @@ -2370,6 +2376,8 @@ class ExportController extends Controller $today=total(1); $week=total(2); $mounth=total(3); + //为数据权限添加 + setPowerPromoteIds($map); $data=$spend ->field('pay_way,date_format(FROM_UNIXTIME(pay_time),"%Y-%m-%d") AS time, sum(pay_amount) as count, sum(IF(pay_time '.$today.',pay_amount,0)) as today, diff --git a/Application/Admin/Controller/PlatformController.class.php b/Application/Admin/Controller/PlatformController.class.php index ed9f14de5..888c8dc7c 100644 --- a/Application/Admin/Controller/PlatformController.class.php +++ b/Application/Admin/Controller/PlatformController.class.php @@ -44,11 +44,8 @@ class PlatformController extends ThinkController $map['fgame_name'] = $_REQUEST['game_name']; unset($_REQUEST['fgame_name']); } - - $promoteRoot = getPowerPromoteIds(); - if ($promoteRoot) { - $map['promote_id'] =array('in',$promoteRoot); - } + //为数据权限添加 + setPowerPromoteIds($map); $today = total(1); $week = total(2); @@ -126,10 +123,8 @@ class PlatformController extends ThinkController unset($_REQUEST['timeend']); } - $promoteRoot = getPowerPromoteIds(); - if ($promoteRoot) { - $map['promote_id'] =array('in',$promoteRoot); - } + //为数据权限添加 + setPowerPromoteIds($map); // var_dump($_REQUEST);exit; if (isset($_REQUEST['game_name']) && $_REQUEST['game_name'] != '') {