From c115722130eb11af68ab639835a266ca9e2b4c9c Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期四, 22 五月 2025 16:26:06 +0800 Subject: [PATCH] 最新版本541200007 --- server/system_service/src/main/java/com/doumee/config/jwt/JwtTokenUtil.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/server/system_service/src/main/java/com/doumee/config/jwt/JwtTokenUtil.java b/server/system_service/src/main/java/com/doumee/config/jwt/JwtTokenUtil.java index bd8d38a..30882e7 100644 --- a/server/system_service/src/main/java/com/doumee/config/jwt/JwtTokenUtil.java +++ b/server/system_service/src/main/java/com/doumee/config/jwt/JwtTokenUtil.java @@ -229,6 +229,7 @@ try { String userInfo = (String) redisTemplate.opsForValue().get(Constants.REDIS_TOKEN_KEY+token); claims = JSONObject.toJavaObject(JSONObject.parseObject(userInfo),LoginUserInfo.class); + refreshToken(token); } catch (Exception e) { claims = null; } @@ -239,9 +240,10 @@ * 鍚戝悗寤朵几鏈夋晥鏈熶繚鎸佷細璇濈户缁� * @param token */ - public void refreshTokenTime(String token ) { + log.error("===============寮�濮嬪埛鏂扮櫥褰晅oken"+token); redisTemplate.expire(Constants.REDIS_TOKEN_KEY+token,jwtProperties.getExpiration(), TimeUnit.MILLISECONDS); + log.error("===============缁撴潫鍒锋柊鐧诲綍token"+token); // redisTemplate.opsForValue().set(Constants.REDIS_TOKEN_KEY+token,usrerInfo,jwtProperties.getExpiration(), TimeUnit.MILLISECONDS); } } \ No newline at end of file -- Gitblit v1.9.3