正在显示
1 个修改的文件
包含
1 行增加
和
4 行删除
| @@ -23,10 +23,7 @@ class UserController extends BaseController | @@ -23,10 +23,7 @@ class UserController extends BaseController | ||
| 23 | */ | 23 | */ |
| 24 | public function lists(ViewDeptUser $viewDeptUser){ | 24 | public function lists(ViewDeptUser $viewDeptUser){ |
| 25 | $this->map['project_id'] = $this->user['project_id']; | 25 | $this->map['project_id'] = $this->user['project_id']; |
| 26 | - $lists = ViewDeptUser->lists($this->map,$this->page,$this->row,'user_id'); | ||
| 27 | - if(empty($lists)){ | ||
| 28 | - $this->response('error',Code::USER_ERROR,[]); | ||
| 29 | - } | 26 | + $lists = $viewDeptUser->lists($this->map,$this->page,$this->row,'user_id'); |
| 30 | $this->response('success',Code::SUCCESS,$lists); | 27 | $this->response('success',Code::SUCCESS,$lists); |
| 31 | } | 28 | } |
| 32 | 29 |
-
请 注册 或 登录 后发表评论