|
|
@@ -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{ |
|
|
|