This commit is contained in:
邹宗楠
2023-09-28 09:10:32 +08:00
parent 98f7ffb213
commit 5508672025

View File

@@ -311,6 +311,7 @@ func (c *PurchaseHandler) PartRefundOrder(ctx *jxcontext.Context, order *model.G
ReasonRemarks: reason,
}
date, _ := api.EbaiAPI.GetReverseOrder(order.VendorOrderID)
globals.SugarLogger.Debug("============data := %s", utils.Format4Output(date, false))
refundProductList := make([]*ebaiapi.RefundProductList, 0, 0)
for _, v := range date {
v2 := v.(map[string]interface{})
@@ -327,6 +328,7 @@ func (c *PurchaseHandler) PartRefundOrder(ctx *jxcontext.Context, order *model.G
refundProductList = append(refundProductList, refundProduct)
}
param.RefundProductList = refundProductList
globals.SugarLogger.Debug("============param := %s", utils.Format4Output(param, false))
err = api.EbaiAPI.OrderAgreePartRefund(param)
} else {
if reason == "" {