🐛 权限判断问题修复

This commit is contained in:
ronger 2022-09-30 11:47:34 +08:00
parent 58ca6728a6
commit 41c82a4386

View File

@ -122,7 +122,7 @@ public class UserServiceImpl extends AbstractService<User> 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());