提交 a39eb852 编写于 作者: Chongwen.jiang's avatar Chongwen.jiang

token续时提供client1.0.3.1。。

上级 6d7ebeb7
流水线 #22534 已失败 于阶段
in 0 second
......@@ -69,7 +69,15 @@ public class TokenUtils {
String sourceTypeRedis = AccountUtils.getSourceType(sourceType);
String key = "token-" + token;
// value = "token-doctor-{doctorId}";
if (!cacheClient.exists(key)) {
logger.info("tokenContinueTime-key not exists");
return false;
}
String value = cacheClient.get(key);
if (!cacheClient.exists(value + "-" + sourceTypeRedis)) {
logger.info("tokenContinueTime-value not exists");
return false;
}
try {
cacheClient.set(key, value, expiredSeconds);
cacheClient.set(value + "-" + sourceTypeRedis, key, expiredSeconds);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册