Browse Source

文件预览地址修改

tags/24080901
WendyYang 5 months ago
parent
commit
d052eb0e9e
3 changed files with 6 additions and 1 deletions
  1. +1
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/external/FilePreviewClient.java
  2. +2
    -0
      hz-pm-api/src/main/resources/application-dev.yml
  3. +3
    -0
      hz-pm-api/src/main/resources/application-prod.yml

+ 1
- 1
hz-pm-api/src/main/java/com/hz/pm/api/external/FilePreviewClient.java View File

@@ -26,7 +26,7 @@ public class FilePreviewClient {


private static final Logger log = LoggerFactory.getLogger(FilePreviewClient.class); 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 String mhFilePreviewUrl;


private final FileService fileService; private final FileService fileService;


+ 2
- 0
hz-pm-api/src/main/resources/application-dev.yml View File

@@ -188,6 +188,8 @@ mh:
down-url: https://weixin.hzszxc.hzswb.cn:8443/test/mh-gateway/oss/oss/previewFileLogin 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 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 upload-url: https://weixin.hzszxc.hzswb.cn:8443/test/mh-gateway/oss/oss/uploadFileSkipLogin
file-preview:
host: http://ztzz2.hzswb.cn/yl


auth-code: auth-code:
secret-key: nqkmzqojg5j4eiypr3rb8s7nb4noa8b2 secret-key: nqkmzqojg5j4eiypr3rb8s7nb4noa8b2


+ 3
- 0
hz-pm-api/src/main/resources/application-prod.yml View File

@@ -198,6 +198,9 @@ mh:
upload-url: http://10.54.38.13:8081/mh-gateway/oss/oss/uploadFileSkipLogin upload-url: http://10.54.38.13:8081/mh-gateway/oss/oss/uploadFileSkipLogin
purchase-notice: purchase-notice:
open: false open: false
file-preview:
# host: http://ztzz2.hzswb.cn/yl
host: http://172.18.43.208/yl


sms-send: sms-send:
host: http://10.54.38.13:8081/mh-gateway/auth-single host: http://10.54.38.13:8081/mh-gateway/auth-single


Loading…
Cancel
Save