44323
2024-03-06 b0254c5a17b3915eb00fdcb33f0eea222cff78ee
cloud-server-gateway/src/main/java/cn/mb/cloud/gateway/filter/PermissionsFilter.java
@@ -119,6 +119,16 @@
    @Value(("${ignore.other.uris}"))
    private String IGNORE_OTHER_URIS;
    /**
     * 世界杯
     */
    @Value(("${ignore.communityWorldCup.prefix}"))
    private String IGNORE_COMMUNITY_WORLD_CUP_PREFIX;
    /**
     * 世界杯
     */
    @Value(("${ignore.communityWorldCup.uris}"))
    private String IGNORE_COMMUNITY_WORLD_CUP_URIS;
    /**
     * 管理后台
     */
    @Value(("${ignore.management.prefix}"))
@@ -259,7 +269,7 @@
        }
        //课程
        if (uri.startsWith(IGNORE_COURSE_URIS)) {
        if (uri.startsWith(IGNORE_COURSE_PREFIX)) {
            if(!StringUtils.isEmpty(IGNORE_COURSE_URIS)){
                String[] split = IGNORE_COURSE_URIS.split(",");
                for (String s : split) {
@@ -282,6 +292,18 @@
            }
        }
        //世界杯
        if (uri.startsWith(IGNORE_COMMUNITY_WORLD_CUP_PREFIX)) {
            if(!StringUtils.isEmpty(IGNORE_COMMUNITY_WORLD_CUP_URIS)){
                String[] split = IGNORE_COMMUNITY_WORLD_CUP_URIS.split(",");
                for (String s : split) {
                    if (uri.contains(s)) {
                        return PermissionResult.PASS;
                    }
                }
            }
        }
        // ----------------------------------------------------------------- 放行综合后台授权登录-UPMS