🐛 权限判断问题修复
This commit is contained in:
parent
58ca6728a6
commit
41c82a4386
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user