From 701cc2aae271783c763dd376470a18247e6fbade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=B8=85?= <2944435683> Date: Tue, 3 Mar 2026 17:19:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=96=E8=BE=91=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/project/updateProject.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/project/updateProject.ts b/src/routes/project/updateProject.ts index cbad207..c317931 100644 --- a/src/routes/project/updateProject.ts +++ b/src/routes/project/updateProject.ts @@ -14,17 +14,19 @@ export default router.post( type: z.string().optional().nullable(), artStyle: z.string().optional().nullable(), videoRatio: z.string().optional().nullable(), + projectType: z.string().optional().nullable(), }), async (req, res) => { - const { id, intro, type, artStyle, videoRatio } = req.body; + const { id, intro, type, artStyle, videoRatio, projectType } = req.body; await u.db("t_project").where("id", id).update({ intro, type, artStyle, videoRatio, + projectType, }); res.status(200).send(success({ message: "修改成功" })); - } + }, );