From ba87fd915abf01a6bcb6d6f0ea9d96c24eac0cc7 Mon Sep 17 00:00:00 2001 From: dongdingding <207595406@qq.com> Date: Mon, 25 Dec 2023 13:11:46 +0800 Subject: [PATCH] =?UTF-8?q?getInfo=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/web/controller/system/SysLoginController.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java index 864f43b..0418ed3 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java @@ -82,11 +82,19 @@ public class SysLoginController public AjaxResult getInfo() { SysUser user = SecurityUtils.getLoginUser().getUser(); + // 角色集合 Set roles = permissionService.getRolePermission(user); // 权限集合 Set permissions = permissionService.getMenuPermission(user); AjaxResult ajax = AjaxResult.success(); + //判断密码是否为初始密码 + if (user.getPassword().equals("Yingji@123")){ + ajax.put("status",1); + }else{ + ajax.put("status",0); + } + ajax.put("user", user); ajax.put("roles", roles); ajax.put("permissions", permissions);