Commit f247dd2a by 韦华德

api接口key续期

parent 7184cde3
......@@ -120,6 +120,12 @@ public class TokenProvider implements InitializingBean {
if (differ <= properties.getDetect()) {
long renew = time + properties.getRenew();
redisUtils.expire(properties.getOnlineKey() + token, renew, TimeUnit.MILLISECONDS);
//api接口key续期
String key =redisUtils.getStr(token);
if(com.zq.common.utils.StringUtils.isNotBlank(key)){
redisUtils.expire(token, renew, TimeUnit.MILLISECONDS);
}
}
}
......
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