作者 jinglong
1 个管道 的构建 通过 耗费 34 秒

修改权限模块

... ... @@ -44,8 +44,10 @@ class CommonController extends RestBaseController
//甲方企业权限模块精确到个人
$service = explode(',',trim($this->user['service_id'],','));
foreach($result['service'] as $key=>$s_value){
if(!in_array($s_value['id'],$service)){
unset($result['service'][$key]);
if($s_value['id'] != 100){
if(!in_array($s_value['id'],$service)){
unset($result['service'][$key]);
}
}
}
$result['service'] = array_values($result['service']);
... ...