forked from 77media/video-flow
前端不再调用剪辑计划
This commit is contained in:
parent
59d7a5831a
commit
934fb3b7ee
@ -212,12 +212,12 @@ export function useWorkflowData({ onEditPlanGenerated, editingStatus, onExportFa
|
||||
window.open(`${cutUrl}/ai-editor/${episodeId}?token=${token}&user_id=${useid}`, '_target');
|
||||
}, [episodeId, cutUrl, token, useid]);
|
||||
|
||||
useEffect(() => {
|
||||
// 主动触发剪辑
|
||||
if (canGoToCut && taskObject.currentStage === 'video' && !isShowError) {
|
||||
generateEditPlan(retryCount - 1);
|
||||
}
|
||||
}, [canGoToCut, taskObject.currentStage, isShowError, generateEditPlan, retryCount]);
|
||||
// useEffect(() => {
|
||||
// // 主动触发剪辑
|
||||
// if (canGoToCut && taskObject.currentStage === 'video' && !isShowError) {
|
||||
// generateEditPlan(retryCount - 1);
|
||||
// }
|
||||
// }, [canGoToCut, taskObject.currentStage, isShowError, generateEditPlan, retryCount]);
|
||||
|
||||
useEffect(() => {
|
||||
// 加载剪辑计划结束 并且 失败了 重试
|
||||
@ -450,11 +450,11 @@ export function useWorkflowData({ onEditPlanGenerated, editingStatus, onExportFa
|
||||
}
|
||||
|
||||
// generate_export_video
|
||||
if (task.task_name === 'generate_export_video') {
|
||||
if (task.task_name === 'generate_export_video' || task.task_name === 'combiner_videos') {
|
||||
if (task.task_status === 'COMPLETED') {
|
||||
taskCurrent.currentStage = 'final_video';
|
||||
taskCurrent.final.url = task.task_result.video;
|
||||
taskCurrent.final.note = 'export';
|
||||
taskCurrent.final.note = task.task_name === 'generate_export_video' ? 'export' : 'combiner';
|
||||
taskCurrent.status = 'COMPLETED';
|
||||
// 停止轮询
|
||||
setNeedStreamData(false);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user