正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -207,7 +207,7 @@ class UserLogic extends BaseLogic | @@ -207,7 +207,7 @@ class UserLogic extends BaseLogic | ||
| 207 | $roleInfo = $roleModel->where('project_id',$this->param['project_id'])->orderBy('id','asc')->first(); | 207 | $roleInfo = $roleModel->where('project_id',$this->param['project_id'])->orderBy('id','asc')->first(); |
| 208 | $info = $this->model->read(['role_id'=>0,'project_id'=>$this->param['project_id']]); | 208 | $info = $this->model->read(['role_id'=>0,'project_id'=>$this->param['project_id']]); |
| 209 | if(empty($info) || empty($roleInfo)){ | 209 | if(empty($info) || empty($roleInfo)){ |
| 210 | - $this->fail('请先添加角色'); | 210 | + $this->fail('请先添加角色,联系管理员'); |
| 211 | } | 211 | } |
| 212 | try { | 212 | try { |
| 213 | $this->model->edit(['role_id'=>$roleInfo['id']],['id'=>$info['id']]); | 213 | $this->model->edit(['role_id'=>$roleInfo['id']],['id'=>$info['id']]); |
-
请 注册 或 登录 后发表评论