From 2fb14ca07861cc9de956e2b4d0ff6d5992029dfa Mon Sep 17 00:00:00 2001 From: xiao-fajia <1665375861@qq.com> Date: Sat, 24 Aug 2024 11:03:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=91=E6=8F=B4APP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/rescue/app/controller/admin/SysLoginController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dl-module-rescue/src/main/java/cn/iocoder/yudao/module/rescue/app/controller/admin/SysLoginController.java b/dl-module-rescue/src/main/java/cn/iocoder/yudao/module/rescue/app/controller/admin/SysLoginController.java index a454e959..f2efef7d 100644 --- a/dl-module-rescue/src/main/java/cn/iocoder/yudao/module/rescue/app/controller/admin/SysLoginController.java +++ b/dl-module-rescue/src/main/java/cn/iocoder/yudao/module/rescue/app/controller/admin/SysLoginController.java @@ -223,7 +223,8 @@ public class SysLoginController { public CommonResult getInfo() { HashMap map = new HashMap<>(); LoginUser loginUser = SecurityFrameworkUtils.getLoginUser(); - map.put("user", loginUser); + AdminUserRespDTO user = userService.getUser(loginUser.getId()); + map.put("user", user); // 角色集合 List roleIdsByUserId = permissionApi.getRoleIdsByUserId(loginUser.getId()); List roleList = roleApi.getRoleList();