ios下载账号隐藏中间部分

master
zhengyongxing 5 years ago
parent b32910a79e
commit 1987fcd865

@ -1222,6 +1222,7 @@ class StatisticsController extends ThinkController {
public function packUserDownload($p=1, $row=10, $pid = 0) public function packUserDownload($p=1, $row=10, $pid = 0)
{ {
$typeArr = ['未知', '企业签下载', 'TF下载', '超级签下载']; $typeArr = ['未知', '企业签下载', 'TF下载', '超级签下载'];
$map = []; $map = [];
$map['_string'] = " 1=1 "; $map['_string'] = " 1=1 ";
@ -1274,10 +1275,22 @@ class StatisticsController extends ThinkController {
->where($map) ->where($map)
->count(); ->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 = []; $parentIds = [];
foreach ($list as $index => $item) { foreach ($list as $index => $item) {
$list[$index]['type_name'] = $typeArr[$item['type']]; $list[$index]['type_name'] = $typeArr[$item['type']];
if ($empower_type['show_data'] == 0 && $group_id != 1) {
$list[$index]['account'] = encryption($list[$index]['account']); $list[$index]['account'] = encryption($list[$index]['account']);
}
$ids = explode('/', trim($item['chain'], '/')); $ids = explode('/', trim($item['chain'], '/'));
$parentIds = array_merge($parentIds, $ids, [$item['promote_id']]); $parentIds = array_merge($parentIds, $ids, [$item['promote_id']]);
switch ($item['level']) { switch ($item['level']) {

Loading…
Cancel
Save