From 09421abf87b83e03647a85aff8ccfc74fcd4a721 Mon Sep 17 00:00:00 2001 From: Coze Agent Date: Thu, 1 Oct 2026 03:50:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(viral-video):=20#2041=20fusion=5Flevel=20?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E5=AF=B9=E9=BD=90=E5=90=8E=E7=AB=AF=20ai=5Ff?= =?UTF-8?q?ull/ai=5Fpolish/user=5Fprimary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/api/viral-video/types.ts | 8 ++++---- apps/web/src/pages/viral-video/ViralVideoPage.tsx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/web/src/api/viral-video/types.ts b/apps/web/src/api/viral-video/types.ts index 54b38c06b..01d7c894e 100644 --- a/apps/web/src/api/viral-video/types.ts +++ b/apps/web/src/api/viral-video/types.ts @@ -1,8 +1,8 @@ -export type FusionLevel = "full_ai" | "polish" | "as_is" +export type FusionLevel = "ai_full" | "ai_polish" | "user_primary" export const FUSION_LEVELS: { value: FusionLevel; label: string; desc: string }[] = [ - { value: "full_ai", label: "AI 全写", desc: "给我方向,全由AI创作" }, - { value: "polish", label: "AI润色", desc: "我写草稿,AI帮我润色" }, - { value: "as_is", label: "按我写的来", desc: "几乎不改我的文案" }, + { value: "ai_full", label: "AI 全写", desc: "给我方向,全由AI创作" }, + { value: "ai_polish", label: "AI润色", desc: "我写草稿,AI帮我润色" }, + { value: "user_primary", label: "按我写的来", desc: "几乎不改我的文案" }, ] export type StyleStrength = "light" | "medium" | "strict" diff --git a/apps/web/src/pages/viral-video/ViralVideoPage.tsx b/apps/web/src/pages/viral-video/ViralVideoPage.tsx index ffec6f64e..b0e9763a0 100644 --- a/apps/web/src/pages/viral-video/ViralVideoPage.tsx +++ b/apps/web/src/pages/viral-video/ViralVideoPage.tsx @@ -121,7 +121,7 @@ const emptyTask = (id: string, title: string): TabTask => ({ title, images: [], refVideo: null, - fusionLevel: "full_ai", + fusionLevel: "ai_full", styleStrength: "medium", voiceId: "", userCopy: "", @@ -425,7 +425,7 @@ const ViralVideoPage: React.FC = () => { images: imgUrls, reference_video_url: task.refVideo?.ossUrl || undefined, style_strength: task.refVideo?.ossUrl ? task.styleStrength : undefined, - user_copy_text: task.fusionLevel !== "full_ai" ? task.userCopy : undefined, + user_copy_text: task.fusionLevel !== "ai_full" ? task.userCopy : undefined, fusion_level: task.fusionLevel, // 注意:STEP1「开始分析」阶段还没有真正开始生成视频,后端会跑到 WAIT_USER_CONFIRM 暂停。 // 配音和视频参数在 STEP2 确认文案时由 confirm-intent 继续使用;但后端接口目前只接收一次 payload, @@ -816,14 +816,14 @@ const ViralVideoPage: React.FC = () => {