Explorar el Código

add:权限基本写完(修改过滤逻辑)

lyx hace 4 meses
padre
commit
afa8ec295d

+ 1 - 1
alien-store/src/main/java/shop/alien/store/filter/PreAuthFilter.java

@@ -42,7 +42,7 @@ public class PreAuthFilter extends OncePerRequestFilter {
         /**
          * 如果不是平台端请求,直接放行,加admin权放行
          */
-        if(null != platformType || "platform".equalsIgnoreCase(platformType)) {
+        if(null == platformType || !"platform".equalsIgnoreCase(platformType)) {
             UsernamePasswordAuthenticationToken authToken = new UsernamePasswordAuthenticationToken(
                     "notPlatformUser", // 无认证场景,用户名可自定义
                     null, // 无需密码,置空