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 afdf54b..03bb3e2 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 @@ -9,7 +9,6 @@ import ( svc2 "applet/app/customer/svc" "applet/app/db" model2 "applet/app/db/model" - "applet/app/e" "applet/app/enum" svc3 "applet/app/svc" "applet/app/utils" @@ -301,10 +300,10 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context, req md.CentralKitch //调用微信进行退款 if !cfg.Prd { //TODO::正式环境暂不开启微信退款 - client, err := svc3.NewWxPayClient(c) //初始化微信连接 - if err != nil { - e.OutErr(c, e.ERR, err.Error()) - return + client, err1 := svc3.NewWxPayClient(c) //初始化微信连接 + if err1 != nil { + _ = session.Rollback() + return err1 } wxSvc := refunddomestic.RefundsApiService{Client: client} for k, v := range dealReturnOrdMapForWx {