|
|
@@ -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, // 无需密码,置空
|