From 4d991e6efddf242d15a94bf470f5b17d749ff7dc Mon Sep 17 00:00:00 2001 From: duzhichao <1098974448@qq.com> Date: Wed, 4 Mar 2026 20:40:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=201:=E4=B8=AD=E7=A7=91=E4=BD=8E=E7=A9=BA?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E6=88=90=E7=89=87=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order/service/impl/VideoEditServiceImpl.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/zlt-business/order-center/src/main/java/com/central/order/service/impl/VideoEditServiceImpl.java b/zlt-business/order-center/src/main/java/com/central/order/service/impl/VideoEditServiceImpl.java index ddeca78f..912d62a3 100644 --- a/zlt-business/order-center/src/main/java/com/central/order/service/impl/VideoEditServiceImpl.java +++ b/zlt-business/order-center/src/main/java/com/central/order/service/impl/VideoEditServiceImpl.java @@ -249,10 +249,15 @@ public class VideoEditServiceImpl implements IVideoEditService { try { log.info("开始通知飞拍平台,订单号: {}", orderNo); - // 1. 获取视频URL - String aiVideoUrl = fileCenterService.getViewUrlByPath(filePath); + // 1. 通过fileId获取视频URL(走getSmartViewUrl,确保经过CDN加速) + 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()) { - log.warn("获取AI视频URL失败,无法通知飞拍平台: orderNo={}, filePath={}", orderNo, filePath); + log.warn("获取AI视频URL失败,无法通知飞拍平台: orderNo={}, fileId={}", orderNo, aiVideoFile.getFileId()); return; }