/**
* @deprecated
* @param $where
* @return mixed
* @throws \think\Exception
*/
public function auth($where)
{
trigger_error('弃用');
if (isset($where['or_user_id'], $where['org_id']) && $where['or_user_id'] != '' && $where['org_id'] != '') {
if (get_role('market-reserve-regional', false, $where['or_user_id']) || get_role('market-marketing-regional', false, $where['or_user_id'])) {//区域
// $where['org_id'] = Department::all(['parent_id' => $where['org_id'], 'is_recur' => 1])->column('id');
} elseif (get_role('market-marketing-city', false, $where['or_user_id'])) {//城市
// $where['org_id'] = Department::all(['parent_id' => $where['org_id'], 'is_recur' => 1])->column('id');
}
}
return $where;
}
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交