后台管理-》统计-》推广员统计,增加判断是否有官方渠道权限

master
liuweiwen 5 years ago
parent 5bebb747f7
commit 3b23c0c5cf

@ -2561,7 +2561,8 @@ class ExportController extends Controller
unset($map['tp1.chain']); unset($map['tp1.chain']);
$map['promote_id'] = 0; $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, $authorityData = M('user', 'tab_')->field('date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time,
count(id) as count, count(id) as count,

@ -414,8 +414,10 @@ class PlatformController extends ThinkController
unset($map['tp1.chain']); unset($map['tp1.chain']);
$map['promote_id'] = 0; $map['promote_id'] = 0;
$authorityData['count'] = 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, $authorityData = M('user', 'tab_')->field('date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time,
count(id) as count, count(id) as count,

Loading…
Cancel
Save