server/system_service/src/main/java/com/doumee/api/BaseController.java
@@ -30,8 +30,6 @@ @Autowired private RedisTemplate<String,Object> stringRedisTemplate; @Resource private JwtProperties jwtProperties; /** * 获取当前登录用户 * @author Eva.Caesar Liu @@ -51,9 +49,6 @@ throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"用户登陆已失效,请重新登陆!"); } return user; } public void updateLoginUser (String token,LoginUserInfo userInfo) { stringRedisTemplate.opsForValue().set(Constants.REDIS_TOKEN_KEY+token,JSONObject.toJSONString(userInfo),jwtProperties.getExpiration(), TimeUnit.MILLISECONDS); }