Merge pull request 'test' (#79) from test into prod
Reviewed-on: http://220.205.16.27:18081/goflytec/GoFly-platform-services/pulls/79
This commit is contained in:
+6
-6
@@ -251,10 +251,10 @@ public class AutoCutVideoController {
|
|||||||
try {
|
try {
|
||||||
log.info("开始通知飞拍平台,订单号: {}", orderNo);
|
log.info("开始通知飞拍平台,订单号: {}", orderNo);
|
||||||
|
|
||||||
// 1. 获取视频URL
|
// 1. 通过fileId获取视频URL(走getSmartViewUrl,确保经过CDN加速)
|
||||||
String aiVideoUrl = fileCenterService.getViewUrlByPath(aiVideoFile.getFilePath());
|
String aiVideoUrl = fileCenterService.getFileViewUrl(aiVideoFile.getFileId());
|
||||||
if (aiVideoUrl == null || aiVideoUrl.isEmpty()) {
|
if (aiVideoUrl == null || aiVideoUrl.isEmpty()) {
|
||||||
log.warn("获取AI视频URL失败,无法通知飞拍平台: orderNo={}, filePath={}", orderNo, aiVideoFile.getFilePath());
|
log.warn("获取AI视频URL失败,无法通知飞拍平台: orderNo={}, fileId={}", orderNo, aiVideoFile.getFileId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -297,10 +297,10 @@ public class AutoCutVideoController {
|
|||||||
return Result.failed("该景区不支持飞拍平台推送,tourismId: " + aiVideoFile.getTourismId());
|
return Result.failed("该景区不支持飞拍平台推送,tourismId: " + aiVideoFile.getTourismId());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3. 获取视频URL
|
// 3. 通过fileId获取视频URL(走getSmartViewUrl,确保经过CDN加速)
|
||||||
String aiVideoUrl = fileCenterService.getViewUrlByPath(aiVideoFile.getFilePath());
|
String aiVideoUrl = fileCenterService.getFileViewUrl(aiVideoFile.getFileId());
|
||||||
if (aiVideoUrl == null || aiVideoUrl.isEmpty()) {
|
if (aiVideoUrl == null || aiVideoUrl.isEmpty()) {
|
||||||
return Result.failed("获取AI视频URL失败,filePath: " + aiVideoFile.getFilePath());
|
return Result.failed("获取AI视频URL失败,fileId: " + aiVideoFile.getFileId());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 4. 构建请求参数
|
// 4. 构建请求参数
|
||||||
|
|||||||
Reference in New Issue
Block a user