diff --git a/Application/Admin/Controller/StatisticsController.class.php b/Application/Admin/Controller/StatisticsController.class.php index c672cfa06..a987f4e79 100644 --- a/Application/Admin/Controller/StatisticsController.class.php +++ b/Application/Admin/Controller/StatisticsController.class.php @@ -1222,6 +1222,7 @@ class StatisticsController extends ThinkController { public function packUserDownload($p=1, $row=10, $pid = 0) { + $typeArr = ['未知', '企业签下载', 'TF下载', '超级签下载']; $map = []; $map['_string'] = " 1=1 "; @@ -1274,10 +1275,22 @@ class StatisticsController extends ThinkController { ->where($map) ->count(); + if ($_SESSION['onethink_admin']['user_group_id']) { + + $group_id = $_SESSION['onethink_admin']['user_group_id']; + + } + + $empower_type = M('AuthGroup')->field('show_data')->where(array('id'=>$group_id))->find(); + $parentIds = []; foreach ($list as $index => $item) { $list[$index]['type_name'] = $typeArr[$item['type']]; - $list[$index]['account'] = encryption($list[$index]['account']); + + if ($empower_type['show_data'] == 0 && $group_id != 1) { + $list[$index]['account'] = encryption($list[$index]['account']); + } + $ids = explode('/', trim($item['chain'], '/')); $parentIds = array_merge($parentIds, $ids, [$item['promote_id']]); switch ($item['level']) {