chore(v2): 终审收尾——settle-sync 非常态结果落日志 + Retry 补 body 上限

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013nMthbVEmQquxBRKb9Fj8u
This commit is contained in:
wangjia
2026-07-10 11:51:33 +08:00
parent 6cbaa59db7
commit 764ed558a1
2 changed files with 13 additions and 2 deletions
+5 -1
View File
@@ -78,8 +78,12 @@ type retryRequest struct {
// Retry POST /api/v2/orders/:order_no/retry
func (h *GatewayHandler) Retry(c *gin.Context) {
c.Request.Body = http.MaxBytesReader(c.Writer, c.Request.Body, maxOrderBodyBytes)
var req retryRequest
_ = c.ShouldBindJSON(&req)
if err := c.ShouldBindJSON(&req); err != nil {
util.RespondError(c, http.StatusBadRequest, "bad_request", "参数格式错误")
return
}
if req.Method == "" {
util.RespondError(c, http.StatusBadRequest, "bad_request", "缺少 method")
return