|
@@ -131,7 +131,11 @@ public class SecurityValidateInterceptor implements HandlerInterceptor, WebMvcCo
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
- Session session = SessionContextHolder.getSession();
|
|
|
|
|
|
+ Session session = SessionContextHolder.getSession(false);
|
|
|
|
+ if (session == null) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (security == null || security.header()) {
|
|
if (security == null || security.header()) {
|
|
// 请求头非空校验
|
|
// 请求头非空校验
|
|
Long timestamp = session.getTimestamp();
|
|
Long timestamp = session.getTimestamp();
|