fix(server): cast report id to string in route handler

这个提交包含在:
xcbyy
2026-10-13 17:22:20 +08:00
父节点 173835dc4e
当前提交 c14a1a3474

查看文件

@@ -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,