From fc9005e9a6f1c77fa8fcbbf241490e0e32c4e14a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Mon, 8 Sep 2025 14:20:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=AA=E5=A4=9A=E5=88=86=E9=95=9C=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=20=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- components/pages/work-flow/use-workflow-data.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index 2878ea4..679a00c 100644 --- a/.env.development +++ b/.env.development @@ -6,4 +6,4 @@ NEXT_PUBLIC_CUT_URL = https://smartcut.movieflow.ai # NEXT_PUBLIC_JAVA_URL = https://test.java.movieflow.ai # NEXT_PUBLIC_BASE_URL = https://test.video.movieflow.ai # 失败率 -NEXT_PUBLIC_ERROR_CONFIG = 0.5 \ No newline at end of file +NEXT_PUBLIC_ERROR_CONFIG = 0.1 \ No newline at end of file diff --git a/components/pages/work-flow/use-workflow-data.tsx b/components/pages/work-flow/use-workflow-data.tsx index 44c4a45..06f3456 100644 --- a/components/pages/work-flow/use-workflow-data.tsx +++ b/components/pages/work-flow/use-workflow-data.tsx @@ -213,10 +213,10 @@ export function useWorkflowData({ onEditPlanGenerated }: UseWorkflowDataProps = useEffect(() => { // 主动触发剪辑 - if (canGoToCut && taskObject.currentStage === 'video') { + if (canGoToCut && taskObject.currentStage === 'video' && !isShowError) { generateEditPlan(retryCount - 1); } - }, [canGoToCut, taskObject.currentStage, retryCount]); + }, [canGoToCut, taskObject.currentStage, retryCount, isShowError]); useEffect(() => { // 加载剪辑计划结束 并且 失败了 重试 @@ -227,7 +227,7 @@ export function useWorkflowData({ onEditPlanGenerated }: UseWorkflowDataProps = useEffect(() => { if (isShowError) { - window.msg.error('Too many failed storyboards, unable to execute automatic editing.', 3000); + window.msg.error('Too many failed storyboards, unable to execute automatic editing.', 8000); } }, [isShowError]);