Commit 5ca44d6e authored by yanzg's avatar yanzg

处理结果

parent 5043368e
...@@ -80,7 +80,10 @@ public class TokenHelper { ...@@ -80,7 +80,10 @@ public class TokenHelper {
} }
return null; return null;
} }
if (!StringHelper.isEmpty(tokenData.getToken())) { boolean isEmpty = tokenData.getData() == null || tokenData.getData().isEmpty();
boolean isExpire = tokenData.getExpire() < System.currentTimeMillis();
boolean isToken = !StringHelper.isEmpty(tokenData.getToken()) && (isEmpty || isExpire);
if (isToken) {
tokenData = tokenLoad.load(tokenData.getToken()); tokenData = tokenLoad.load(tokenData.getToken());
if (tokenData != null) { if (tokenData != null) {
cache.put(id, tokenData); cache.put(id, tokenData);
......
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