From 7298d5354963a88643a543b51b90192dc9fc934c Mon Sep 17 00:00:00 2001 From: doum <doum> Date: 星期四, 11 九月 2025 18:43:14 +0800 Subject: [PATCH] 最新版本541200007 --- server/system_service/src/main/java/com/doumee/config/jwt/JwtTokenUtil.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 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 ca998e5..910d2f9 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); + refreshTokenTime(token); } catch (Exception e) { claims = null; } @@ -239,8 +240,10 @@ * 鍚戝悗寤朵几鏈夋晥鏈熶繚鎸佷細璇濈户缁� * @param token */ - - public void refreshTokenTime(String token,String usrerInfo) { - redisTemplate.opsForValue().set(Constants.REDIS_TOKEN_KEY+token,usrerInfo,jwtProperties.getExpiration(), TimeUnit.MILLISECONDS); + 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