This commit is contained in:
richboo111
2022-08-09 16:06:22 +08:00
parent 76bcab3f71
commit a3aab38181
2 changed files with 5 additions and 3 deletions

View File

@@ -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]

View File

@@ -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
}