作者 景龙
1 个管道 的构建 通过 耗费 1 秒

调试员工项目列表

@@ -208,6 +208,7 @@ class IndexController extends RestBaseController @@ -208,6 +208,7 @@ class IndexController extends RestBaseController
208 //如果是员工 208 //如果是员工
209 $res = []; 209 $res = [];
210 $uid = ','.$this->userId.','; 210 $uid = ','.$this->userId.',';
  211 + if(isset($user['identity'])){
211 if($user['identity'] == config('site.a_staff')){ 212 if($user['identity'] == config('site.a_staff')){
212 //甲方 213 //甲方
213 $res = $common->getProjectByUid(['a_sid'=>['like','%'.$uid.'%']]); 214 $res = $common->getProjectByUid(['a_sid'=>['like','%'.$uid.'%']]);
@@ -217,6 +218,8 @@ class IndexController extends RestBaseController @@ -217,6 +218,8 @@ class IndexController extends RestBaseController
217 $res = $common->getProjectByUid(['b_sid'=>['like','%'.$uid.'%']]); 218 $res = $common->getProjectByUid(['b_sid'=>['like','%'.$uid.'%']]);
218 } 219 }
219 $this->success('成功',$res); 220 $this->success('成功',$res);
  221 + }
  222 + $this->error('失败','请联系管理员分配公司!');
220 }else{ 223 }else{
221 $this->error('请求方式错误!'); 224 $this->error('请求方式错误!');
222 } 225 }