From c76c259ba83d8bf6db3fb8cbbf3e3ac2b7258c34 Mon Sep 17 00:00:00 2001 From: moux1024 <403053463@qq.com> Date: Wed, 15 Oct 2025 01:07:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E8=BF=94=E5=9B=9E=E7=9A=84snapshot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/DTO/movieEdit.ts | 2 ++ components/pages/work-flow/use-workflow-data.tsx | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/api/DTO/movieEdit.ts b/api/DTO/movieEdit.ts index 34e84c8..c9dd239 100644 --- a/api/DTO/movieEdit.ts +++ b/api/DTO/movieEdit.ts @@ -367,6 +367,8 @@ export interface VideoFlowProjectResponse { data: ProjectContentData; /** 最终简单视频 */ final_simple_video: string; + /** 最终简单视频封面图 */ + final_simple_video_snapshot_url: string; /** 最终视频 */ final_video: string; /** 画面比例 */ diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index 4f84f4d..6b0664c 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -415,7 +415,7 @@ export function useWorkflowData({}: UseWorkflowDataProps = {}) { throw new Error(response.message); } - const { status, data, tags, mode, original_text, aspect_ratio, name, final_simple_video, final_video } = response.data; + const { status, data, tags, mode, original_text, aspect_ratio, name, final_simple_video, final_simple_video_snapshot_url, final_video } = response.data; const { current: taskCurrent } = tempTaskObject; @@ -532,10 +532,11 @@ export function useWorkflowData({}: UseWorkflowDataProps = {}) { if (final_simple_video) { taskCurrent.currentStage = 'final_video'; taskCurrent.final.url = final_simple_video; + taskCurrent.final.snapshot_url = final_simple_video_snapshot_url; taskCurrent.final.note = 'simple'; taskCurrent.status = 'COMPLETED'; } - + if (final_video) { taskCurrent.currentStage = 'final_video'; taskCurrent.final.url = final_video; @@ -555,7 +556,7 @@ export function useWorkflowData({}: UseWorkflowDataProps = {}) { originalText: original_text, isLoading: false }); - // 设置步骤 + // 设置步骤 setTaskObject(prev => { const newState = JSON.parse(JSON.stringify({...prev, ...taskCurrent})); return newState;