fix(server): cast report id to string in route handler
这个提交包含在:
@@ -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,
|
||||
|
||||
在新工单中引用
屏蔽一个用户