Commit f90d0a11 authored by yanzg's avatar yanzg

异常处理显示

parent dcf5529c
...@@ -162,6 +162,9 @@ public class TokenHelper { ...@@ -162,6 +162,9 @@ public class TokenHelper {
public static String getTokenString() { public static String getTokenString() {
String id = getCurrentId(); String id = getCurrentId();
TokenData tokenData = cache.get(id); TokenData tokenData = cache.get(id);
if (tokenData == null) {
return StringHelper.EMPTY;
}
return JsonHelper.serialize(tokenData); return JsonHelper.serialize(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