diff --git a/app/admin/hdl/hdl_audit_center.go b/app/admin/hdl/hdl_audit_center.go index 1b6a748..6cd5cc2 100644 --- a/app/admin/hdl/hdl_audit_center.go +++ b/app/admin/hdl/hdl_audit_center.go @@ -109,13 +109,15 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context) { return } - go func() { - err1 := svc2.CentralKitchenForSchoolOrderRefundAudit(req) - if err1 != nil { - logx.Error(err1) - println("<<<>>>>Error:::", err1.Error()) - } - }() + //go func() { + err1 := svc2.CentralKitchenForSchoolOrderRefundAudit(req) + if err1 != nil { + logx.Error(err1) + println("<<<>>>>Error:::", err1.Error()) + e.OutErr(c, err1.Code, err1.Error()) + return + } + //}() e.OutSuc(c, "success", nil) return @@ -211,7 +213,7 @@ func NursingHomeOrderRefundList(c *gin.Context) { } func NursingHomeOrderRefundAudit(c *gin.Context) { - var req md.CentralKitchenForSchoolOrderRefundAuditReq + var req md.NursingHomeOrderRefundAuditReq err := c.ShouldBindJSON(&req) if err != nil { err = validate.HandleValidateErr(err) @@ -219,7 +221,7 @@ func NursingHomeOrderRefundAudit(c *gin.Context) { e.OutErr(c, err1.Code, err1.Error()) return } - err = svc2.CentralKitchenForSchoolOrderRefundAudit(req) + err = svc2.NursingHomeOrderRefundAudit(req) if err != nil { e.OutErr(c, e.ERR, err.Error()) return diff --git a/app/admin/svc/order/svc_central_kitchen_for_school_order.go b/app/admin/svc/order/svc_central_kitchen_for_school_order.go index 462a597..10ce0c0 100644 --- a/app/admin/svc/order/svc_central_kitchen_for_school_order.go +++ b/app/admin/svc/order/svc_central_kitchen_for_school_order.go @@ -263,7 +263,7 @@ func CentralKitchenForSchoolOrderRefundAudit(req md.CentralKitchenForSchoolOrder _ = session.Rollback() return err6 } - time.Sleep(250 * time.Millisecond) //TODO::避免频繁调用 + time.Sleep(50 * time.Millisecond) //TODO::避免频繁调用 } return session.Commit() }