From 8836138283f64fc7c4aeb985170b2e51d13b06e0 Mon Sep 17 00:00:00 2001 From: qikongjian Date: Wed, 17 Sep 2025 14:24:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E5=A4=9A=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E6=9D=A1=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= =?UTF-8?q?,=E6=89=80=E6=9C=89=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E8=B5=B0work-flow=E9=A1=B5=E9=9D=A2export-service=E5=8F=AA?= =?UTF-8?q?=E4=BD=9C=E4=B8=BA=E5=85=AC=E7=94=A8=E6=96=B9=E6=B3=95=E4=B8=8D?= =?UTF-8?q?=E5=81=9A=E5=BC=B9=E7=AA=97=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow.tsx | 17 ++++-- utils/export-service.ts | 103 ++++++++++++++++++++------------- 2 files changed, 75 insertions(+), 45 deletions(-) diff --git a/components/pages/work-flow.tsx b/components/pages/work-flow.tsx index ce94ea0..90a4bb1 100644 --- a/components/pages/work-flow.tsx +++ b/components/pages/work-flow.tsx @@ -14,7 +14,7 @@ import { SaveEditUseCase } from "@/app/service/usecase/SaveEditUseCase"; import { useSearchParams } from "next/navigation"; import SmartChatBox from "@/components/SmartChatBox/SmartChatBox"; import { Drawer, Tooltip, notification } from 'antd'; -import { showEditingNotification } from "@/components/pages/work-flow/editing-notification"; +// import { showEditingNotification } from "@/components/pages/work-flow/editing-notification"; // import { AIEditingIframeButton } from './work-flow/ai-editing-iframe'; import { exportVideoWithRetry } from '@/utils/export-service'; @@ -76,7 +76,8 @@ const WorkFlow = React.memo(function WorkFlow() { console.log('📊 导出进度更新:', progressData); setExportProgress(progressData); - // 根据状态显示不同的通知 + // 根据状态显示不同的通知 - 已注释 + /* if (progressData.status === 'processing') { notification.info({ message: '导出进度', @@ -102,6 +103,7 @@ const WorkFlow = React.memo(function WorkFlow() { key: 'export-progress' }); } + */ }, []); // 处理编辑计划生成完成的回调 const handleEditPlanGenerated = useCallback(() => { @@ -125,6 +127,8 @@ const WorkFlow = React.memo(function WorkFlow() { setTimeout(() => { handleTestExportRef.current?.(); }, 0); + // 编辑通知已全部注释 + /* editingNotificationKey.current = `editing-${Date.now()}`; showEditingNotification({ description: 'Performing intelligent editing...', @@ -172,6 +176,7 @@ const WorkFlow = React.memo(function WorkFlow() { }, 200); } }); + */ }, [episodeId]); // handleTestExport 在内部调用,无需作为依赖 /** 处理导出失败 */ @@ -221,7 +226,8 @@ const WorkFlow = React.memo(function WorkFlow() { console.log('changedIndex_work-flow', currentSketchIndex, taskObject); }, [currentSketchIndex, taskObject]); - // 监听粗剪是否完成,如果完成 更新 showEditingNotification 的状态 为完成,延时 3s 并关闭 + // 监听粗剪是否完成 - 已注释,不显示右上角成功通知 + /* useEffect(() => { console.log('🎬 final video useEffect triggered:', { finalUrl: taskObject.final.url, @@ -255,6 +261,7 @@ const WorkFlow = React.memo(function WorkFlow() { }); } }, [taskObject.final, isHandleEdit, episodeId]); + */ const handleEditModalOpen = useCallback((tab: string) => { setActiveEditTab(tab); @@ -435,7 +442,8 @@ const WorkFlow = React.memo(function WorkFlow() { } */} - {/* 导出进度显示 */} + {/* 导出进度显示 - 已注释 */} + {/* {exportProgress && exportProgress.status === 'processing' && (
@@ -455,6 +463,7 @@ const WorkFlow = React.memo(function WorkFlow() {
)} + */} {/* 测试导出接口按钮 - 隐藏显示(仍可通过逻辑调用) */}