Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
483bd65e12
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      app/admin/svc/order/svc_central_kitchen_for_school_order.go

+ 7
- 7
app/admin/svc/order/svc_central_kitchen_for_school_order.go View File

@@ -188,6 +188,12 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context, req md.CentralKitch
}{}

outRequestNoSuffix := "_" + utils.Int64ToStr(time.Now().Unix())
client, err := svc3.NewWxPayClient(c) //初始化微信连接
if err != nil {
e.OutErr(c, e.ERR, err.Error())
return
}
wxSvc := refunddomestic.RefundsApiService{Client: client}

for _, v := range req.Ids {
//1、更新状态
@@ -305,13 +311,7 @@ func CentralKitchenForSchoolOrderRefundAudit(c *gin.Context, req md.CentralKitch
time.Sleep(200 * time.Millisecond) //TODO::避免频繁调用
}

client, err := svc3.NewWxPayClient(c)
if err != nil {
e.OutErr(c, e.ERR, err.Error())
return
}
wxSvc := refunddomestic.RefundsApiService{Client: client}

//调用微信进行退款
for k, v := range dealReturnOrdMapForWx {
resp, _, err6 := wxSvc.Create(c,
refunddomestic.CreateRequest{


Loading…
Cancel
Save