|
|
@ -446,7 +446,6 @@ class PlatformController extends ThinkController
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$map['tp1.chain'] = '/';
|
|
|
|
$map['tp1.chain'] = '/';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//为数据权限添加
|
|
|
|
//为数据权限添加
|
|
|
|
setPowerPromoteIds($map, 'u.promote_id');
|
|
|
|
setPowerPromoteIds($map, 'u.promote_id');
|
|
|
|
|
|
|
|
|
|
|
@ -462,7 +461,6 @@ class PlatformController extends ThinkController
|
|
|
|
->group('tp1.id')
|
|
|
|
->group('tp1.id')
|
|
|
|
->order('count desc, register_time')
|
|
|
|
->order('count desc, register_time')
|
|
|
|
->select();
|
|
|
|
->select();
|
|
|
|
// echo $data;die();
|
|
|
|
|
|
|
|
//今日/本周/本月不变
|
|
|
|
//今日/本周/本月不变
|
|
|
|
$tmap = $map;
|
|
|
|
$tmap = $map;
|
|
|
|
if(isset($tmap['register_time'])){
|
|
|
|
if(isset($tmap['register_time'])){
|
|
|
@ -493,8 +491,6 @@ class PlatformController extends ThinkController
|
|
|
|
->group('tp1.id')
|
|
|
|
->group('tp1.id')
|
|
|
|
->order('register_time')
|
|
|
|
->order('register_time')
|
|
|
|
->select();
|
|
|
|
->select();
|
|
|
|
// dd($tdata);die();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$tmdata = [];
|
|
|
|
$tmdata = [];
|
|
|
|
foreach($data as $k=>$v){
|
|
|
|
foreach($data as $k=>$v){
|
|
|
|
$v['today'] = 0;
|
|
|
|
$v['today'] = 0;
|
|
|
@ -521,7 +517,7 @@ class PlatformController extends ThinkController
|
|
|
|
|
|
|
|
|
|
|
|
unset($map['tp1.id']);
|
|
|
|
unset($map['tp1.id']);
|
|
|
|
unset($map['tp1.chain']);
|
|
|
|
unset($map['tp1.chain']);
|
|
|
|
unset($tmap['tp1.chain']);
|
|
|
|
unset($tmap['tp1.id']);
|
|
|
|
unset($tmap['tp1.chain']);
|
|
|
|
unset($tmap['tp1.chain']);
|
|
|
|
$map['u.promote_id'] = 0;
|
|
|
|
$map['u.promote_id'] = 0;
|
|
|
|
$tmap['u.promote_id'] = 0;
|
|
|
|
$tmap['u.promote_id'] = 0;
|
|
|
|