Commit 9abc74a9 by shenjunjie

权限部分调整2

parent 2823843b
......@@ -22,6 +22,6 @@ public class InterceptorConfig implements WebMvcConfigurer {
@Override
public void addInterceptors(InterceptorRegistry registry) {
// 自定义拦截器,添加拦截路径和排除拦截路径
registry.addInterceptor(mainAuthInterceptor).addPathPatterns("/common/**", "/app/**", "/admin/**", "/mobile/**").excludePathPatterns("/app/event/detail/**");
registry.addInterceptor(mainAuthInterceptor).addPathPatterns("/**").excludePathPatterns("/app/event/detail/**");
}
}
......@@ -650,7 +650,7 @@ public class Tools {
}
public static boolean tokenEmpty(String token) {
return null == token || Objects.equals("undefined", token);
return null == token || Objects.equals("undefined", token) || Objects.equals("null", token);
}
/**
......
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