From c84f853d92572710446f4ba5963e66f39077a324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=B8=85?= <2944435683> Date: Fri, 27 Mar 2026 00:54:08 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E8=B5=84=E4=BA=A7=E5=9B=BE=E7=89=87=E5=AD=97=E6=AE=B5=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/assets/getImage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/assets/getImage.ts b/src/routes/assets/getImage.ts index bfde1ba..b575e5d 100644 --- a/src/routes/assets/getImage.ts +++ b/src/routes/assets/getImage.ts @@ -14,7 +14,7 @@ export default router.post( async (req, res) => { const { assetsId } = req.body; - const assets = await u.db("o_assets").where("id", assetsId).select("id", "imageId", "type", "state").first(); + const assets = await u.db("o_assets").where("id", assetsId).select("id", "imageId", "type").first(); const rawTempAssets = await u.db("o_image").where("assetsId", assetsId).select("id", "filePath", "assetsId", "type", "state"); @@ -28,10 +28,10 @@ export default router.post( const data = { id: assets!.id, - state: assets!.state, imageId: assets!.imageId ?? null, tempAssets, }; + console.log("%c Line:30 🥤 data", "background:#465975", data); res.status(200).send(success(data)); }, ); From c0574dd5157c57e06371eeabdadcddcb3bc65644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=B8=85?= <2944435683> Date: Fri, 27 Mar 2026 01:14:03 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=86=E9=95=9C?= =?UTF-8?q?=E7=9A=84index?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/production/saveFlowData.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/routes/production/saveFlowData.ts b/src/routes/production/saveFlowData.ts index 2cd1b20..9b69a2f 100644 --- a/src/routes/production/saveFlowData.ts +++ b/src/routes/production/saveFlowData.ts @@ -14,8 +14,13 @@ export default router.post( data: flowDataSchema, }), async (req, res) => { - const { projectId, episodesId } = req.body; + const { data, projectId, episodesId } = req.body; const sqlData = await u.db("o_agentWorkData").where("projectId", String(projectId)).andWhere("episodesId", String(episodesId)).first(); + for (let item of data.storyboard) { + await u.db("o_storyboard").where("id", item.id).update({ + index: item.id, + }); + } if (!sqlData) { await u.db("o_agentWorkData").insert({ projectId, From 011d0ff8b8ddb1cb84ea5a555cd2a81e7553c572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=B8=85?= <2944435683> Date: Fri, 27 Mar 2026 01:35:58 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=89=A7=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/script/delScript.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/routes/script/delScript.ts b/src/routes/script/delScript.ts index b2d07cd..8eb3791 100644 --- a/src/routes/script/delScript.ts +++ b/src/routes/script/delScript.ts @@ -7,13 +7,13 @@ const router = express.Router(); // 删除剧本 export default router.post( - "/", - validateFields({ - id: z.number(), - }), - async (req, res) => { - const { id } = req.body; - await u.db("o_script").where({ id }).delete(); - res.status(200).send(success({ message: "删除剧本成功" })); - }, + "/", + validateFields({ + id: z.array(z.number()), + }), + async (req, res) => { + const { id } = req.body; + await u.db("o_script").whereIn("id", id).delete(); + res.status(200).send(success({ message: "删除剧本成功" })); + }, );