|
@@ -157,7 +157,8 @@ class UserLogic extends BaseLogic |
|
@@ -157,7 +157,8 @@ class UserLogic extends BaseLogic |
|
157
|
Common::del_user_cache($this->model, $id, 'A');
|
157
|
Common::del_user_cache($this->model, $id, 'A');
|
|
158
|
}else{
|
158
|
}else{
|
|
159
|
//查看当前项目是否有其他的超级管理员
|
159
|
//查看当前项目是否有其他的超级管理员
|
|
160
|
- $roleInfo = $this->model->read(['id'=>['!=',$info['id']],'role_id'=>0]);
|
160
|
+ $roleInfo = $this->model->read(['id'=>['!=',$id],'role_id'=>0]);
|
|
|
|
161
|
+ @file_put_contents(storage_path('logs/lyh_error.log'), var_export($roleInfo, true) . PHP_EOL, FILE_APPEND);
|
|
161
|
if($roleInfo === false){
|
162
|
if($roleInfo === false){
|
|
162
|
$this->fail('唯一超级管理员,禁止删除');
|
163
|
$this->fail('唯一超级管理员,禁止删除');
|
|
163
|
}
|
164
|
}
|