From 143cbd7c7af330a99d152fffdfdc7da9222f8226 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 11 Oct 2023 18:19:46 +0800 Subject: [PATCH] update --- .../svc/order/svc_central_kitchen_for_school_order.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 {