Commit b7e73a19 authored by 黎博's avatar 黎博

Merge branch 'master' into k8s

parents 43645596 523a8e2c
......@@ -42,7 +42,7 @@ public class TokenServiceImpl implements TokenService {
User user = userMapper.selectById(userId);
UserInfoVo userInfoVo = userService.getUserInfoByUsername(user.getUsername());
//设置用户信息缓存
redisUtils.set(TOKEN_PREFIX + token, userInfoVo);
redisUtils.set(TOKEN_PREFIX + token, userInfoVo, 640800);
return token;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment