正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论