From d052eb0e9e46a565babd1c873579ad18f0e45dce Mon Sep 17 00:00:00 2001 From: WendyYang Date: Mon, 3 Jun 2024 14:38:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=A2=84=E8=A7=88=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hz-pm-api/src/main/java/com/hz/pm/api/external/FilePreviewClient.java | 2 +- hz-pm-api/src/main/resources/application-dev.yml | 2 ++ hz-pm-api/src/main/resources/application-prod.yml | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hz-pm-api/src/main/java/com/hz/pm/api/external/FilePreviewClient.java b/hz-pm-api/src/main/java/com/hz/pm/api/external/FilePreviewClient.java index bd651f2..4cca3dd 100644 --- a/hz-pm-api/src/main/java/com/hz/pm/api/external/FilePreviewClient.java +++ b/hz-pm-api/src/main/java/com/hz/pm/api/external/FilePreviewClient.java @@ -26,7 +26,7 @@ public class FilePreviewClient { private static final Logger log = LoggerFactory.getLogger(FilePreviewClient.class); - @Value("${mh.file-preview.host:http://ztzz2.hzswb.cn/yl}") + @Value("${mh.file-preview.host}") private String mhFilePreviewUrl; private final FileService fileService; diff --git a/hz-pm-api/src/main/resources/application-dev.yml b/hz-pm-api/src/main/resources/application-dev.yml index ffcf261..1f66ab9 100644 --- a/hz-pm-api/src/main/resources/application-dev.yml +++ b/hz-pm-api/src/main/resources/application-dev.yml @@ -188,6 +188,8 @@ mh: down-url: https://weixin.hzszxc.hzswb.cn:8443/test/mh-gateway/oss/oss/previewFileLogin detail-url: https://weixin.hzszxc.hzswb.cn:8443/test/mh-gateway/oss/ossfile/getFileInfoList upload-url: https://weixin.hzszxc.hzswb.cn:8443/test/mh-gateway/oss/oss/uploadFileSkipLogin + file-preview: + host: http://ztzz2.hzswb.cn/yl auth-code: secret-key: nqkmzqojg5j4eiypr3rb8s7nb4noa8b2 diff --git a/hz-pm-api/src/main/resources/application-prod.yml b/hz-pm-api/src/main/resources/application-prod.yml index 1513648..8dc35a5 100644 --- a/hz-pm-api/src/main/resources/application-prod.yml +++ b/hz-pm-api/src/main/resources/application-prod.yml @@ -198,6 +198,9 @@ mh: upload-url: http://10.54.38.13:8081/mh-gateway/oss/oss/uploadFileSkipLogin purchase-notice: open: false + file-preview: + # host: http://ztzz2.hzswb.cn/yl + host: http://172.18.43.208/yl sms-send: host: http://10.54.38.13:8081/mh-gateway/auth-single