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