From 0f6982fc9b34627324c0b168c7a225760207e437 Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期一, 24 二月 2025 11:47:33 +0800 Subject: [PATCH] zjh20250224 --- ltkj-admin/src/main/java/com/ltkj/web/config/swagger/SwaggerConfig.java | 10 +++++----- ltkj-framework/src/main/java/com/ltkj/framework/config/WebConfig.java | 11 +++-------- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/config/swagger/SwaggerConfig.java b/ltkj-admin/src/main/java/com/ltkj/web/config/swagger/SwaggerConfig.java index 837a755..5d9ba18 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/config/swagger/SwaggerConfig.java +++ b/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 @@ // 鐢ˋpiInfoBuilder杩涜瀹氬埗 return new ApiInfoBuilder() // 璁剧疆鏍囬 - .title("浣撴椤圭洰鎺ュ彛鏂囨。") + .title("浣撴绯荤粺鍖哄煙鐗堟帴鍙f枃妗�") // 鎻忚堪 .description("瑗垮畨璺嘲绉戞妧鏈夐檺鍏徃") // 浣滆�呬俊鎭� - .contact(new Contact("鏉庢牸&璧典匠璞�", null, null)) + .contact(new Contact("zwx&zjh", null, null)) // 鐗堟湰 .version("鐗堟湰鍙�:" + ltkjConfig.getVersion()) .build(); diff --git a/ltkj-framework/src/main/java/com/ltkj/framework/config/WebConfig.java b/ltkj-framework/src/main/java/com/ltkj/framework/config/WebConfig.java index 2bac523..c25965c 100644 --- a/ltkj-framework/src/main/java/com/ltkj/framework/config/WebConfig.java +++ b/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) -- Gitblit v1.8.0