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

修改权限模块

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