From 526b4d5cd11dbc4f1c1d106f81bab5d438a48e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=B7=E9=BE=99?= Date: Thu, 7 Aug 2025 14:48:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=BB=E8=BE=91=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/video_flow.ts | 2 -- app/service/Interaction/ScriptService.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/api/video_flow.ts b/api/video_flow.ts index 6935fc8..3e2e34d 100644 --- a/api/video_flow.ts +++ b/api/video_flow.ts @@ -639,8 +639,6 @@ export const getProjectScript = async (request: { project_id: string; /** 生成的剧本文本 */ generated_script: string; - /**用户想法 */ - script:string }> >("/movie/get_generated_script_by_project_id", request); }; diff --git a/app/service/Interaction/ScriptService.ts b/app/service/Interaction/ScriptService.ts index 2ea26b4..db51ab9 100644 --- a/app/service/Interaction/ScriptService.ts +++ b/app/service/Interaction/ScriptService.ts @@ -206,7 +206,7 @@ export const useScriptService = (): UseScriptService => { * @param projectId 项目ID */ const initializeFromProject = useCallback( - async (projectId: string): Promise => { + async (projectId: string,script:string): Promise => { try { setLoading(true); @@ -216,7 +216,7 @@ export const useScriptService = (): UseScriptService => { // 调用API获取项目剧本数据 const response = await getProjectScript({ project_id: projectId }); if(response.data.generated_script===''){ - await generateScriptFromIdea(response.data.script,projectId) + await generateScriptFromIdea(script,projectId) return } if (!response.successful) {