fix: 删除查重 API GET/POST 端点中错误的 204 返回 #81
Reference in New Issue
Block a user
Delete Branch "fix/p0-duplication-204-response"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
修复内容
删除
apps/api/app/api/routes/duplication.py中 2 个错误的return Response(status_code=204)语句:get_duplication_detailGET 端点): 删除 — 导致永远返回空 204,正常逻辑被短路retry_duplicationPOST 端点): 删除 — 导致永远返回空 204,正常逻辑被短路delete_duplication_recordDELETE 端点): 保留不动 — 204 返回正确影响
修复前,GET /records/{id} 和 POST /records/{id}/retry 两个端点永远返回 HTTP 204 空响应,前端无法获取查重详情或重新提交查重。