From 5e1fdb336828dc8ccd427ff9fa33ef4d2af9f738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 1 Sep 2023 19:59:07 +0800 Subject: [PATCH] 1 --- business/partner/purchase/ebai/order.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } }