This commit is contained in:
蒋海成 2025-02-22 19:36:25 +08:00
parent d498fc7133
commit 7953eca7c2
2 changed files with 6 additions and 5 deletions

View File

@ -47,9 +47,10 @@ func Error(c *gin.Context, err error) {
}
c.JSON(http.StatusOK, Response{
Code: Failed,
Msg: errMsg,
Data: struct{}{},
Code: Failed,
Status: Failed,
Msg: errMsg,
Data: struct{}{},
})
c.Abort()

View File

@ -87,7 +87,7 @@ func UpdateBundleOrderStatusPaid(c *gin.Context) {
userInfo := login.GetUserInfoFromC(c)
if req.Uuid == "" {
service.Retry(c, errors.New(common.MissOrderUUID))
service.Error(c, errors.New(common.MissOrderUUID))
return
}
@ -96,7 +96,7 @@ func UpdateBundleOrderStatusPaid(c *gin.Context) {
})
if detailErr != nil {
service.Retry(c, detailErr)
service.Error(c, detailErr)
return
}