Merge pull request 'feat: 1:中科低空一键成片推送' (#76) from feature_dzc into test
Reviewed-on: http://220.205.16.27:18081/goflytec/GoFly-platform-services/pulls/76
This commit is contained in:
+8
-3
@@ -249,10 +249,15 @@ public class VideoEditServiceImpl implements IVideoEditService {
|
|||||||
try {
|
try {
|
||||||
log.info("开始通知飞拍平台,订单号: {}", orderNo);
|
log.info("开始通知飞拍平台,订单号: {}", orderNo);
|
||||||
|
|
||||||
// 1. 获取视频URL
|
// 1. 通过fileId获取视频URL(走getSmartViewUrl,确保经过CDN加速)
|
||||||
String aiVideoUrl = fileCenterService.getViewUrlByPath(filePath);
|
OrderFile aiVideoFile = orderFileService.getOrderFileByFilePath(filePath);
|
||||||
|
if (aiVideoFile == null || aiVideoFile.getFileId() == null) {
|
||||||
|
log.warn("未找到AI视频文件记录,无法通知飞拍平台: orderNo={}, filePath={}", orderNo, filePath);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
String aiVideoUrl = fileCenterService.getFileViewUrl(aiVideoFile.getFileId());
|
||||||
if (aiVideoUrl == null || aiVideoUrl.isEmpty()) {
|
if (aiVideoUrl == null || aiVideoUrl.isEmpty()) {
|
||||||
log.warn("获取AI视频URL失败,无法通知飞拍平台: orderNo={}, filePath={}", orderNo, filePath);
|
log.warn("获取AI视频URL失败,无法通知飞拍平台: orderNo={}, fileId={}", orderNo, aiVideoFile.getFileId());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user