mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-23 11:09:29 +08:00
完成登录校验
This commit is contained in:
16
src/main/java/xyz/playedu/api/bus/BackendBus.java
Normal file
16
src/main/java/xyz/playedu/api/bus/BackendBus.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package xyz.playedu.api.bus;
|
||||
|
||||
import xyz.playedu.api.constant.BackendConstant;
|
||||
|
||||
public class BackendBus {
|
||||
|
||||
public static boolean inUnAuthWhitelist(String uri) {
|
||||
for (int i = 0; i < BackendConstant.UN_AUTH_URI_WHITELIST.length; i++) {
|
||||
if (uri.equals(BackendConstant.UN_AUTH_URI_WHITELIST[i])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user