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