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();