diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index 7d104feaa..fe36f71ab 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -2561,7 +2561,8 @@ class ExportController extends Controller unset($map['tp1.chain']); $map['promote_id'] = 0; //如果有官方渠道权限 - if (in_array('0', explode(",", session('user_auth_promote_ids')))) { + $user_auth_promote_ids = session('user_auth_promote_ids'); + if ($user_auth_promote_ids == 'all' || in_array('0', explode(",", $user_auth_promote_ids))) { //官方渠道数据添加 $authorityData = M('user', 'tab_')->field('date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time, count(id) as count, diff --git a/Application/Admin/Controller/PlatformController.class.php b/Application/Admin/Controller/PlatformController.class.php index 2bc2b1867..8c2cc9281 100644 --- a/Application/Admin/Controller/PlatformController.class.php +++ b/Application/Admin/Controller/PlatformController.class.php @@ -414,8 +414,10 @@ class PlatformController extends ThinkController unset($map['tp1.chain']); $map['promote_id'] = 0; $authorityData['count'] = 0; + //如果有官方渠道权限 - if (in_array('0', explode(",", session('user_auth_promote_ids')))) { + $user_auth_promote_ids = session('user_auth_promote_ids'); + if ($user_auth_promote_ids == 'all' || in_array('0', explode(",", $user_auth_promote_ids))) { //官方渠道数据添加 $authorityData = M('user', 'tab_')->field('date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time, count(id) as count,