数据权限官方渠道添加

master
zhengyongxing 5 years ago
parent 2ec116a017
commit ba59b41fb9

@ -390,6 +390,7 @@ class PromoteModel extends Model{
{
$where['level'] = $level;
$userAuth = session('user_auth');
setPowerPromoteIds($where,'id');
$offcialData = [0=>['id'=>0,'nickname'=>'官方渠道']];
@ -399,7 +400,7 @@ class PromoteModel extends Model{
$item['nickname'] = $item['account'] . ($item['nickname'] ? "({$item['nickname']})" : "");
}
if (in_array('0',explode(',',$where['id'][1]))) {
if (in_array('0',explode(',',$where['id'][1]))||$userAuth['data_empower_type']==1) {
$result = array_merge($offcialData,$result);
// dump($result);die();
}

Loading…
Cancel
Save