This commit is contained in:
suyl
2021-08-16 09:41:38 +08:00
parent b067647050
commit 140fda8927
4 changed files with 86 additions and 63 deletions

View File

@@ -246,6 +246,9 @@ func (c *PurchaseHandler) RefundOrder(ctx *jxcontext.Context, order *model.Goods
// 发起部分退款
func (c *PurchaseHandler) PartRefundOrder(ctx *jxcontext.Context, order *model.GoodsOrder, refundSkuList []*model.OrderSku, reason string) (err error) {
if globals.EnableEbaiStoreWrite {
if order.Status > model.OrderStatusEndBegin {
return fmt.Errorf("饿百暂不支持售后退款!")
}
err = api.EbaiAPI.OrderPartRefund(order.VendorOrderID, orderSkus2AfsSkus(refundSkuList))
}
return err