将全局过滤器的 BeforeAuth 认证设为不受 includeList 与 excludeList 的限制,所有请求都会进入

This commit is contained in:
click33
2023-04-29 22:10:14 +08:00
parent bc855f2b1b
commit d54af36999
15 changed files with 28 additions and 29 deletions

View File

@@ -124,11 +124,11 @@ public class SaTokenFilter implements SaFilter, Filter { //之所以改名,为
Action action = (mainHandler instanceof Action ? (Action) mainHandler : null);
//先路径过滤下(包括了静态文件)
//1.执行前置处理(主要是一些跨域之类的)
if(beforeAuth != null) {
beforeAuth.run(mainHandler);
}
SaRouter.match(includeList).notMatch(excludeList).check(r -> {
//1.执行前置处理(主要是一些跨域之类的)
if(beforeAuth != null) {
beforeAuth.run(mainHandler);
}
//2.执行注解处理
if(authAnno(action)) {
//3.执行规则处理(如果没有被 @SaIgnore 忽略)