|
@@ -9,7 +9,6 @@ import ( |
|
|
svc2 "applet/app/customer/svc" |
|
|
svc2 "applet/app/customer/svc" |
|
|
"applet/app/db" |
|
|
"applet/app/db" |
|
|
model2 "applet/app/db/model" |
|
|
model2 "applet/app/db/model" |
|
|
"applet/app/e" |
|
|
|
|
|
"applet/app/enum" |
|
|
"applet/app/enum" |
|
|
svc3 "applet/app/svc" |
|
|
svc3 "applet/app/svc" |
|
|
"applet/app/utils" |
|
|
"applet/app/utils" |
|
@@ -301,10 +300,10 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context, req md.CentralKitch |
|
|
|
|
|
|
|
|
//调用微信进行退款 |
|
|
//调用微信进行退款 |
|
|
if !cfg.Prd { //TODO::正式环境暂不开启微信退款 |
|
|
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} |
|
|
wxSvc := refunddomestic.RefundsApiService{Client: client} |
|
|
for k, v := range dealReturnOrdMapForWx { |
|
|
for k, v := range dealReturnOrdMapForWx { |
|
|