From 08e0ed4fc6b53d80feebc5add86d1fd70e75b952 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期二, 28 十二月 2021 11:23:32 +0800
Subject: [PATCH] [重磅更新] 增加 轻量级 分布式队列 支持

---
 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/UserDetailsServiceImpl.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/UserDetailsServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/UserDetailsServiceImpl.java
index 8472d68..d4e3095 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/UserDetailsServiceImpl.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/UserDetailsServiceImpl.java
@@ -47,6 +47,12 @@
     }
 
     public UserDetails createLoginUser(SysUser user) {
-        return new LoginUser(user.getUserId(), user.getDeptId(), user.getUserName(), user.getPassword(), permissionService.getMenuPermission(user));
+        return new LoginUser()
+            .setUserId(user.getUserId())
+            .setDeptId(user.getDeptId())
+            .setUsername(user.getUserName())
+            .setPassword(user.getPassword())
+            .setMenuPermissions(permissionService.getMenuPermission(user))
+            .setRolePermissions(permissionService.getRolePermission(user));
     }
 }

--
Gitblit v1.9.3