diff --git a/business/partner/purchase/ebai/order.go b/business/partner/purchase/ebai/order.go index c9744fa8b..c09b28548 100644 --- a/business/partner/purchase/ebai/order.go +++ b/business/partner/purchase/ebai/order.go @@ -662,7 +662,6 @@ func (c *PurchaseHandler) AgreeOrRefuseCancel(ctx *jxcontext.Context, order *mod ReverseOrderId: "", OrderId: order.VendorOrderID, IdempotentId: utils.Int64ToStr(time.Now().UnixNano()), - ActionType: ebaiapi.RefundTypeRefuse, ReasonRemarks: reason, } refundProductList := make([]*ebaiapi.RefundProductList, 0, 0) @@ -687,12 +686,14 @@ func (c *PurchaseHandler) AgreeOrRefuseCancel(ctx *jxcontext.Context, order *mod param.RefundProductList = refundProductList if isAcceptIt { + param.ActionType = ebaiapi.RefundTypeAgree err = api.EbaiAPI.OrderAgreeRefund(param) } else { if reason == "" { return fmt.Errorf("拒绝退单时,请填写拒单原因") } param.ReasonCode = "7001" + param.ActionType = ebaiapi.RefundTypeRefuse err = api.EbaiAPI.OrderDisagreeRefund(param) } }