作者 lyh

gx

... ... @@ -149,6 +149,7 @@ class UserLogic extends BaseLogic
{
foreach ($this->param['id'] as $id){
$info = $this->model->read(['id'=>$id],['id','role_id']);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($info['role_id'], true) . PHP_EOL, FILE_APPEND);
if($info['role_id'] == 0) {
//查看当前项目是否有其他的超级管理员
$roleInfo = $this->model->read(['id' => ['!=', $id], 'role_id' => 0]);
... ...