1
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user