From c14a1a34748723c6336647137a7e8e6a19420ab6 Mon Sep 17 00:00:00 2001 From: xcbyy <2578898740@qq.com> Date: Tue, 13 Oct 2026 17:22:20 +0800 Subject: [PATCH] fix(server): cast report id to string in route handler --- server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/index.ts b/server/src/index.ts index 1dd57b1..a19bc5d 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -1347,7 +1347,7 @@ app.post('/api/reports/:id/handle', async (req: Request, res: Response) => { if (!action || !['punish', 'reject'].includes(action)) { return res.status(400).json({ code: 40000, message: '请指定合法的处理动作 (punish 或 reject)' }); } - const result = await repo.handleReport(id, action, handleNote, penaltyOptions); + const result = await repo.handleReport(String(id), action, handleNote, penaltyOptions); res.json({ code: 20000, data: result,