From 47640fa11a7b7019fb7db751732c8e9e8eebb81d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=B8=85?= <2944435683> Date: Tue, 14 Apr 2026 11:34:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=A8=A1=E5=9E=8B=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E5=8F=AA=E6=9F=A5=E8=AF=A2=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workbench/generateVideoPrompt.ts | 3 -- .../setting/modelMap/getImageAndVideoModel.ts | 2 +- src/types/database.d.ts | 37 ++++++++++++++++++- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/src/routes/production/workbench/generateVideoPrompt.ts b/src/routes/production/workbench/generateVideoPrompt.ts index b01f4c1..8a0a75a 100644 --- a/src/routes/production/workbench/generateVideoPrompt.ts +++ b/src/routes/production/workbench/generateVideoPrompt.ts @@ -89,9 +89,6 @@ export default router.post( } const artStyle = projectData?.artStyle || "无"; const visualManual = u.getArtPrompt(artStyle, "art_skills", "art_storyboard_video"); - console.log("%c Line:99 🍧 storyboard", "background:#e41a6a", storyboard); - console.log("%c Line:97 🍣 assets", "background:#7f2b82", assets); - const content = ` **模型名称**:${modelData}, **资产信息**(角色、场景、道具):${assets diff --git a/src/routes/setting/modelMap/getImageAndVideoModel.ts b/src/routes/setting/modelMap/getImageAndVideoModel.ts index b1c06b7..fc40e7a 100644 --- a/src/routes/setting/modelMap/getImageAndVideoModel.ts +++ b/src/routes/setting/modelMap/getImageAndVideoModel.ts @@ -15,7 +15,7 @@ export default router.post("/", async (req, res) => { const promptMap = new Map(promptList.map((p) => [p.model, p.prompt])); const models = await u.vendor.getModelList(item.id!); const filteredModels = models - .filter((m: any) => m.type === "image" || m.type === "video") + .filter((m: any) => m.type === "video") .map((m: any) => ({ name: m.name, type: m.type as "image" | "video", diff --git a/src/types/database.d.ts b/src/types/database.d.ts index 74ef407..ddb8902 100644 --- a/src/types/database.d.ts +++ b/src/types/database.d.ts @@ -1,6 +1,37 @@ -// @db-hash 88c167ba73e2771e7b043419ca5089dd +// @db-hash 61fa5dc78f789e88edc7eeb51f55a1b7 //该文件由脚本自动生成,请勿手动修改 +export interface _o_project_old_20260404 { + 'artStyle'?: string | null; + 'createTime'?: number | null; + 'directorManual'?: string | null; + 'id'?: number | null; + 'imageModel'?: string | null; + 'imageQuality'?: string | null; + 'intro'?: string | null; + 'mode'?: string | null; + 'name'?: string | null; + 'projectType'?: string | null; + 'type'?: string | null; + 'userId'?: number | null; + 'videoModel'?: string | null; + 'videoRatio'?: string | null; +} +export interface _o_prompt_old_20260406 { + 'data'?: string | null; + 'id'?: number; + 'name'?: string | null; + 'type'?: string | null; + 'useData'?: string | null; +} +export interface _o_prompt_old_20260406_1 { + 'data'?: string | null; + 'id'?: number; + 'name'?: string | null; + 'TEXT'?: any | null; + 'type'?: string | null; + 'useData'?: string | null; +} export interface memories { 'content': string; 'createTime': number; @@ -210,7 +241,6 @@ export interface o_user { 'password'?: string | null; } export interface o_vendorConfig { - 'code'?: string | null; 'enable'?: number | null; 'id'?: string; 'inputValues'?: string | null; @@ -239,6 +269,9 @@ export interface o_videoTrack { } export interface DB { + "_o_project_old_20260404": _o_project_old_20260404; + "_o_prompt_old_20260406": _o_prompt_old_20260406; + "_o_prompt_old_20260406_1": _o_prompt_old_20260406_1; "memories": memories; "o_agentDeploy": o_agentDeploy; "o_agentWorkData": o_agentWorkData;