From 41c82a438698115719a58c8db5c90cf352e14f73 Mon Sep 17 00:00:00 2001 From: ronger Date: Fri, 30 Sep 2022 11:47:34 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=9D=83=E9=99=90=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/rymcu/forest/service/impl/UserServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rymcu/forest/service/impl/UserServiceImpl.java b/src/main/java/com/rymcu/forest/service/impl/UserServiceImpl.java index ed17d78..e6855cd 100644 --- a/src/main/java/com/rymcu/forest/service/impl/UserServiceImpl.java +++ b/src/main/java/com/rymcu/forest/service/impl/UserServiceImpl.java @@ -122,7 +122,7 @@ public class UserServiceImpl extends AbstractService implements UserServic userMapper.updateLastOnlineTimeByEmail(user.getEmail()); TokenUser tokenUser = new TokenUser(); BeanCopierUtil.copy(user, tokenUser); - tokenUser.setToken(tokenManager.createToken(account)); + tokenUser.setToken(tokenManager.createToken(user.getEmail())); tokenUser.setWeights(userMapper.selectRoleWeightsByUser(user.getIdUser())); // 保存登录日志 loginRecordService.saveLoginRecord(tokenUser.getIdUser());