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