zjh
2025-02-24 0f6982fc9b34627324c0b168c7a225760207e437
zjh20250224
2个文件已修改
21 ■■■■■ 已修改文件
ltkj-admin/src/main/java/com/ltkj/web/config/swagger/SwaggerConfig.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ltkj-framework/src/main/java/com/ltkj/framework/config/WebConfig.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ltkj-admin/src/main/java/com/ltkj/web/config/swagger/SwaggerConfig.java
@@ -79,6 +79,7 @@
    private List<SecurityScheme> securitySchemes() {
        List<SecurityScheme> apiKeyList = new ArrayList<SecurityScheme>();
        apiKeyList.add(new ApiKey("Authorization", "Authorization", In.HEADER.toValue()));
        apiKeyList.add(new ApiKey("hospId", "hospId", In.HEADER.toValue()));
        return apiKeyList;
    }
@@ -100,12 +101,11 @@
     */
    private List<SecurityReference> defaultAuth() {
        AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything");
        AuthorizationScope[] authorizationScopes = new AuthorizationScope[2];
        AuthorizationScope[] authorizationScopes = new AuthorizationScope[1];
        authorizationScopes[0] = authorizationScope;
//        authorizationScopes[1] = authorizationScope;
        List<SecurityReference> securityReferences = new ArrayList<>();
        securityReferences.add(new SecurityReference("Authorization", authorizationScopes));
//        securityReferences.add(new SecurityReference("hospId", authorizationScopes));
        securityReferences.add(new SecurityReference("hospId", authorizationScopes));
        return securityReferences;
    }
@@ -116,11 +116,11 @@
        // 用ApiInfoBuilder进行定制
        return new ApiInfoBuilder()
                // 设置标题
                .title("体检项目接口文档")
                .title("体检系统区域版接口文档")
                // 描述
                .description("西安路泰科技有限公司")
                // 作者信息
                .contact(new Contact("李格&赵佳豪", null, null))
                .contact(new Contact("zwx&zjh", null, null))
                // 版本
                .version("版本号:" + ltkjConfig.getVersion())
                .build();
ltkj-framework/src/main/java/com/ltkj/framework/config/WebConfig.java
@@ -45,14 +45,9 @@
//                        "/system/dict/type/**",
                        "/captchaImage","/getCaptchaConfigKey/**",
                        "/system/role/execUpdateSql",
                        "/jmreport/**"
//                        ,
//                        "/login", "/register", "/captchaImage","/cus/**","/getCaptchaConfigKey","/report/jmreport/**",
//                        "/sqlserver/getdata/**","/api/His/**","/system/config/zx","/system/config/gxxmpym","/system/report/savePdf",
//                        "/system/dyjl/saveGjddyjl","/system/dyjl/saveBlGjddyjl","/check/ceshi","/check/pacs","/check/ceshicc",
//                        "/common/uploadImgExe","/common/listExeVal","/pacs/InvokeRisService/**","/check/dataSynchronizationApi",
//                        String.valueOf(HttpMethod.GET), "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**",
//                        "/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**","/jmreport/**","/lis/**","/pacs/**","/callBack/**"
                        "/jmreport/**",
                        "/**/*.html", "/**/*.css", "/**/*.js","/swagger-ui.html",
                        "/swagger-resources/**", "/*/api-docs", "/webjars/**"
                });
        registry.addInterceptor(jimuInterceptor)