|
...
|
...
|
@@ -207,7 +207,7 @@ class UserLogic extends BaseLogic |
|
|
|
$roleInfo = $roleModel->where('project_id',$this->param['project_id'])->orderBy('id','asc')->first();
|
|
|
|
$info = $this->model->read(['role_id'=>0,'project_id'=>$this->param['project_id']]);
|
|
|
|
if(empty($info) || empty($roleInfo)){
|
|
|
|
$this->fail('请先添加角色');
|
|
|
|
$this->fail('请先添加角色,联系管理员');
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
$this->model->edit(['role_id'=>$roleInfo['id']],['id'=>$info['id']]);
|
...
|
...
|
|