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]);