From a2ef1db88a2fead2b08e1aee3aa9ad51fff322ab Mon Sep 17 00:00:00 2001 From: zhishi <1951671751@qq.com> Date: Sat, 21 Mar 2026 17:50:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=AE=8C=E5=96=84flow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/production/editStoryboard/getStoryboardFlow.ts | 1 - src/routes/production/editStoryboard/saveStoryboardFlow.ts | 1 + src/routes/production/getStoryboardData.ts | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/production/editStoryboard/getStoryboardFlow.ts b/src/routes/production/editStoryboard/getStoryboardFlow.ts index 682fbfa..19447db 100644 --- a/src/routes/production/editStoryboard/getStoryboardFlow.ts +++ b/src/routes/production/editStoryboard/getStoryboardFlow.ts @@ -12,7 +12,6 @@ export default router.post( }), async (req, res) => { const { id } = req.body; - console.log("%c Line:15 🥤 id", "background:#e41a6a", id); const storyboardFlowData = await u.db("o_storyboardFlow").where("stroryboardId", id).first(); if (storyboardFlowData?.flowData) { const parseFlow = JSON.parse(storyboardFlowData.flowData); diff --git a/src/routes/production/editStoryboard/saveStoryboardFlow.ts b/src/routes/production/editStoryboard/saveStoryboardFlow.ts index 74d1dfb..e16281b 100644 --- a/src/routes/production/editStoryboard/saveStoryboardFlow.ts +++ b/src/routes/production/editStoryboard/saveStoryboardFlow.ts @@ -27,6 +27,7 @@ export default router.post( }); const [id] = await u.db("o_storyboard").insert({ filePath: new URL(imageUrl).pathname, + createTime: Date.now(), }); await u.db("o_storyboardFlow").insert({ stroryboardId: id, diff --git a/src/routes/production/getStoryboardData.ts b/src/routes/production/getStoryboardData.ts index 4d5dc5d..39f9f6f 100644 --- a/src/routes/production/getStoryboardData.ts +++ b/src/routes/production/getStoryboardData.ts @@ -18,7 +18,8 @@ export default router.post( storyboardData.map(async (i) => { return { ...i, - image: i.filePath ? await u.oss.getFileUrl(i.filePath!) : "", + title: i.name, + src: i.filePath ? await u.oss.getFileUrl(i.filePath!) : "", }; }), ); From 40c732d0213c70bbf9fda632af465a72f03bf409 Mon Sep 17 00:00:00 2001 From: zhishi <1951671751@qq.com> Date: Sat, 21 Mar 2026 18:17:38 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=88=86=E9=95=9C?= =?UTF-8?q?=E8=A1=A8=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/initDB.ts | 3 +++ src/types/database.d.ts | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/lib/initDB.ts b/src/lib/initDB.ts index 0631fb6..0a9e0da 100644 --- a/src/lib/initDB.ts +++ b/src/lib/initDB.ts @@ -314,6 +314,9 @@ export default async (knex: Knex, forceInit: boolean = false): Promise => table.text("seconds"); table.text("filePath"); table.text("frameType"); + table.text("camera"); + table.text("sound"); + table.text("associateAssetsIds"); table.integer("createTime"); table.primary(["id"]); table.unique(["id"]); diff --git a/src/types/database.d.ts b/src/types/database.d.ts index 775ad75..cc7ae3a 100644 --- a/src/types/database.d.ts +++ b/src/types/database.d.ts @@ -1,6 +1,16 @@ -// @db-hash 8af8e41e3ca0cb5ee554944515d72ba8 +// @db-hash 4e0fc4daee764ea1a80bacd64b0cac2b //该文件由脚本自动生成,请勿手动修改 +export interface _o_storyboard_old_20260321 { + 'createTime'?: number | null; + 'detail'?: string | null; + 'filePath'?: string | null; + 'frameType'?: string | null; + 'id'?: number; + 'name'?: string | null; + 'prompt'?: string | null; + 'seconds'?: string | null; +} export interface memories { 'content': string; 'createTime': number; @@ -162,6 +172,8 @@ export interface o_skills { 'startTime'?: number | null; } export interface o_storyboard { + 'associateAssetsIds'?: string | null; + 'camera'?: string | null; 'createTime'?: number | null; 'detail'?: string | null; 'filePath'?: string | null; @@ -170,6 +182,8 @@ export interface o_storyboard { 'name'?: string | null; 'prompt'?: string | null; 'seconds'?: string | null; + 'sound'?: string | null; + 'TEXT'?: any | null; } export interface o_storyboardFlow { 'flowData': string; @@ -242,6 +256,7 @@ export interface o_videoConfig { } export interface DB { + "_o_storyboard_old_20260321": _o_storyboard_old_20260321; "memories": memories; "o_agentDeploy": o_agentDeploy; "o_artStyle": o_artStyle;