hxd преди 2 месеца
родител
ревизия
68e351c7c6

+ 3 - 3
portal-service-infrastructure/src/main/java/com/hfln/portal/infrastructure/gateway/impl/WebGatewayImpl.java

@@ -57,8 +57,8 @@ import java.util.stream.Collectors;
 @Service
 public class WebGatewayImpl implements WebGateway {
 
-    @Value("${oss.download-url-pre}")
-    private String downloadUrlPre;
+    @Value("${oss.ota-download-url-pre}")
+    private String otaDownloadUrlPre;
 
     @Autowired
     private DevInfoService devInfoService;
@@ -669,7 +669,7 @@ public class WebGatewayImpl implements WebGateway {
         ossFile.setBusiKey("0"); // 业务主键设为默认值
         ossFile.setFileName(originalFilename);
         // 存储完整的OSS访问URL
-        String fullOssUrl = downloadUrlPre + objectName;
+        String fullOssUrl = otaDownloadUrlPre + objectName;
         ossFile.setOssUrl(fullOssUrl);
         ossFileService.save(ossFile);
         

+ 2 - 1
portal-service-server/src/main/resources/bootstrap-dev.yml

@@ -121,4 +121,5 @@ oss:
   region: cn-shanghai
   expire:
     seconds: 3600
-  download-url-pre: https://hflnxx.oss-cn-shanghai.aliyuncs.com/
+  download-url-pre: https://hflnxx.oss-cn-shanghai.aliyuncs.com/
+  ota-download-url-pre: http://hflnxx.oss-cn-shanghai.aliyuncs.com/

+ 1 - 0
portal-service-server/src/main/resources/bootstrap-local.yml

@@ -122,3 +122,4 @@ oss:
   expire:
     seconds: 3600
   download-url-pre: https://hflnxx.oss-cn-shanghai.aliyuncs.com/
+  ota-download-url-pre: http://hflnxx.oss-cn-shanghai.aliyuncs.com/

+ 2 - 1
portal-service-server/src/main/resources/bootstrap-test.yml

@@ -121,4 +121,5 @@ oss:
   region: cn-shanghai
   expire:
     seconds: 3600
-  download-url-pre: https://hflnxx.oss-cn-shanghai.aliyuncs.com/
+  download-url-pre: https://hflnxx.oss-cn-shanghai.aliyuncs.com/
+  ota-download-url-pre: http://hflnxx.oss-cn-shanghai.aliyuncs.com/