yangdamao 1 week ago
parent
commit
a24ac4328c

+ 4 - 1
zhichen-system/src/main/java/com/zhichen/modules/bank/service/impl/QuestionServiceImpl.java

@@ -180,6 +180,9 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
     @Value("${aliyun.oss.endpoint}")
     private String ossHost;
 
+    @Value("${tengxun.cos.endpoint}")
+    private String cosHost;
+
     @Value("${oldSys.question}")
     private String QUESTION;
 
@@ -4554,7 +4557,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
                 if (responseCode == HttpURLConnection.HTTP_OK) {
                     try (InputStream inputStream = connection.getInputStream()) {
                         String s = cosService.uploadInputStream(inputStream,6);
-                        ossPath = ossHost + "/" + s;
+                        ossPath = cosHost + "/" + s;
 
                     }
                 }