Browse Source

返回码,402token过期,406账号其他地方登陆

sunhh 2 years ago
parent
commit
18c3f00a0e

+ 3 - 0
base-framework/src/main/java/com/ozs/framework/security/handle/AuthenticationEntryPointImpl.java

@@ -68,6 +68,9 @@ public class AuthenticationEntryPointImpl implements AuthenticationEntryPoint, S
                 String msg = StringUtils.format("token已过期", request.getRequestURI());
                 ServletUtils.renderString(response, JSON.toJSONString(AjaxResult.error(code402, msg)));
             }
+        } else {
+            String msg = StringUtils.format("token已过期", request.getRequestURI());
+            ServletUtils.renderString(response, JSON.toJSONString(AjaxResult.error(code402, msg)));
         }
     }
 }