Compare commits

...

1 Commits

Author SHA1 Message Date
a1668b60fc fix : change admin user info 2025-08-04 15:58:15 +08:00

View File

@@ -61,7 +61,7 @@ class EmployeeService extends BaseService
/** /**
* @var array|string[] * @var array|string[]
*/ */
private array $filed = ['id','username','avatar','chinese_name','mobile','status','last_login_ip','last_login_time','role_id']; private array $filed = ['id','username','avatar','chinese_name','mobile','status','last_login_ip','last_login_time','role_id','bind_user_id'];
/** /**
* 列表 * 列表
@@ -160,8 +160,8 @@ class EmployeeService extends BaseService
$bindUserId = (int)$this->request->input('bind_user_id', 0); $bindUserId = (int)$this->request->input('bind_user_id', 0);
if ($bindUserId > 0) { if ($bindUserId > 0) {
$oldBindUserId = $this->adminUserModel->getAdminInfoByBindUserId($bindUserId); $oldInfo = $this->adminUserModel->getAdminInfoByBindUserId($bindUserId);
if (!empty($oldBindUserId) && $info->bind_user_id != $oldBindUserId) throw new ErrException('绑定用户已存在'); if (!empty($oldBindUserId) && $info->bind_user_id != $oldInfo->bind_user_id) throw new ErrException('绑定用户已存在');
} }