fix(delivery): 增加绑定缓存防频控、发货队列防重试死锁、终止无效回调重试

This commit is contained in:
yml2213
2026-09-18 15:26:09 +08:00
parent ec76844da8
commit 40194fa7e5
5 changed files with 135 additions and 18 deletions
@@ -2,6 +2,7 @@ package response
import (
"encoding/json"
"errors"
"fmt"
"net/http"
"reflect"
@@ -33,6 +34,9 @@ func WithStatus(c *gin.Context, httpStatus int, data interface{}) {
}
func Fail(c *gin.Context, httpStatus int, code int, message string) {
if message != "" && c != nil {
_ = c.Error(errors.New(message))
}
c.JSON(httpStatus, Body{Code: code, Message: message})
}