Merge branch 'feature/fee_form' of wmtx/platform into release

ios下载账号隐藏中间部分
master
廖金灵 5 years ago committed by Gogs
commit f72220eeb0

@ -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']) {

Loading…
Cancel
Save