mirror of
https://gitee.com/ctexthuang/hyperf-micro-svc.git
synced 2026-03-27 15:10:18 +08:00
fix : update cors and admin user cache
This commit is contained in:
@@ -130,6 +130,8 @@ class PermissionService extends BaseAdminService
|
||||
|
||||
if (!$this->adminUserRepository->updateById($userInfo->id, $data)) throw new ErrException('更新失败');
|
||||
|
||||
$this->updateAdminUserInfo($this->adminId);
|
||||
|
||||
return $this->adminReturn->success();
|
||||
}
|
||||
}
|
||||
@@ -89,6 +89,8 @@ class UserService extends BaseAdminService
|
||||
|
||||
if (!$res) throw new ErrException('修改失败');
|
||||
|
||||
$this->updateAdminUserInfo($this->adminId);
|
||||
|
||||
return $this->adminReturn->success();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user