|
...
|
...
|
@@ -52,6 +52,12 @@ class UserLogic extends BaseLogic |
|
|
|
//验证一个项目是否只有一个超级管理员
|
|
|
|
$this->verifyRole($this->param);
|
|
|
|
if (isset($this->param['id']) && !empty($this->param['id'])) {
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']]);
|
|
|
|
if($info['role_id'] == 0){
|
|
|
|
//更新项目信息
|
|
|
|
$projectModel = new Project();
|
|
|
|
$projectModel->edit(['lead_name'=>$this->param['name'],'mobile'=>$this->param['mobile']],['id'=>$info['project_id']]);
|
|
|
|
}
|
|
|
|
$this->param = $this->editPassword($this->param);
|
|
|
|
$rs = $this->model->edit($this->param, ['id' => $this->param['id']]);
|
|
|
|
} else {
|
...
|
...
|
|