From a3aab38181992dc939ec0d72c8ccb0ba04fc6445 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Tue, 9 Aug 2022 16:06:22 +0800 Subject: [PATCH] refund --- platformapi/ebaiapi/ebaiapi.go | 2 +- platformapi/ebaiapi/order.go | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/platformapi/ebaiapi/ebaiapi.go b/platformapi/ebaiapi/ebaiapi.go index 3fc178b3..1b79d13a 100644 --- a/platformapi/ebaiapi/ebaiapi.go +++ b/platformapi/ebaiapi/ebaiapi.go @@ -46,7 +46,7 @@ type API struct { } func New(source, secret string, config ...*platformapi.APIConfig) *API { - // baseapi.SugarLogger.Debugf("token=%v, appKey=%v, secret=%v", token, appKey, secret) + // baseapi.SugarLogger.Debugf("token=%v, pay=%v, secret=%v", token, appKey, secret) curConfig := platformapi.DefAPIConfig if len(config) > 0 { curConfig = *config[0] diff --git a/platformapi/ebaiapi/order.go b/platformapi/ebaiapi/order.go index a60e66e8..1654bf79 100644 --- a/platformapi/ebaiapi/order.go +++ b/platformapi/ebaiapi/order.go @@ -568,9 +568,11 @@ func (a *API) OrderPartRefund(orderID string, removeSkuList []*RefundSku) (err e } //售后 同意用户多次部分取消 -func (a *API) OrderAgreePartRefund(orderID string) (err error) { +func (a *API) OrderAgreePartRefund(orderID string, removeSkuList []*RefundSku, refundID string) (err error) { _, err = a.AccessAPI("order.agreepartrefund", map[string]interface{}{ - "order_id": orderID, + "order_id": orderID, + "products": removeSkuList, + "refund_id": refundID, }) return err }