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,