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] =?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!) : "", }; }), );