Commit c90e50f6 by shenjunjie

Merge branch 'feature' into 'release'

权限部分调整2

See merge request !274
parents 71c6842d 9abc74a9
...@@ -22,6 +22,6 @@ public class InterceptorConfig implements WebMvcConfigurer { ...@@ -22,6 +22,6 @@ public class InterceptorConfig implements WebMvcConfigurer {
@Override @Override
public void addInterceptors(InterceptorRegistry registry) { 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 { ...@@ -650,7 +650,7 @@ public class Tools {
} }
public static boolean tokenEmpty(String token) { 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