Browse Source

Dispatcher 去掉 user-key认证

master
lxc 2 years ago
parent
commit
74db91d2c1
  1. 1
      lpro/src/main/java/com/lp/authority/AuthorityIntercept.java

1
lpro/src/main/java/com/lp/authority/AuthorityIntercept.java

@ -46,6 +46,7 @@ public class AuthorityIntercept {
|| requestUrl.contains("/mail") || requestUrl.contains("/bind") || requestUrl.contains("/live") || || requestUrl.contains("/mail") || requestUrl.contains("/bind") || requestUrl.contains("/live") ||
requestUrl.contains("/mqtt") || requestUrl.contains("/baidu") || requestUrl.contains("/vp") ||requestUrl.contains("/noauth") requestUrl.contains("/mqtt") || requestUrl.contains("/baidu") || requestUrl.contains("/vp") ||requestUrl.contains("/noauth")
|| requestUrl.endsWith("/") || requestUrl.contains("/dictionary")) { || requestUrl.endsWith("/") || requestUrl.contains("/dictionary")) {
return true; return true;
} else { } else {
if (ObjectUtil.isNotEmpty(userKey) || requestMethod.equals("PUT") || requestMethod.equals("POST") if (ObjectUtil.isNotEmpty(userKey) || requestMethod.equals("PUT") || requestMethod.equals("POST")

Loading…
Cancel
Save