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

修改权限模块

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