1
This commit is contained in:
@@ -2,6 +2,7 @@ package jdapi
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"strings"
|
||||
|
||||
@@ -662,17 +663,18 @@ func (a *API) ConfirmReceiveGoods(orderId string) (err error) {
|
||||
// 自配送商家(或转自配送)的订单,由于无法完成订单配送,通过此接口取消订单并退款。
|
||||
// https://openo2o.jddj.com/staticnew/widgets/resources.html?groupid=169&apiid=6be3f3a811f14f22a83007ab02f23b03
|
||||
func (a *API) CancelAndRefund(orderId, operPin, operRemark string) (err error) {
|
||||
if operRemark == "" {
|
||||
operRemark = "operRemark"
|
||||
}
|
||||
jdParams := map[string]interface{}{
|
||||
"orderId": orderId,
|
||||
"operPin": utils.GetAPIOperator(operPin),
|
||||
"operRemark": operRemark,
|
||||
"operTime": utils.GetCurTimeStr(),
|
||||
}
|
||||
_, err = a.AccessAPINoPage("orderStatus/cancelAndRefund", jdParams, nil, nil, genNoPageResultParser("code", "detail", "", "0"))
|
||||
return err
|
||||
return fmt.Errorf("京东商家取消接口已下线,请APP联系客服或拨打客服热线:400 002 0020 取消订单")
|
||||
//if operRemark == "" {
|
||||
// operRemark = "operRemark"
|
||||
//}
|
||||
//jdParams := map[string]interface{}{
|
||||
// "orderId": orderId,
|
||||
// "operPin": utils.GetAPIOperator(operPin),
|
||||
// "operRemark": operRemark,
|
||||
// "operTime": utils.GetCurTimeStr(),
|
||||
//}
|
||||
//_, err = a.AccessAPINoPage("orderStatus/cancelAndRefund", jdParams, nil, nil, genNoPageResultParser("code", "detail", "", "0"))
|
||||
//return err
|
||||
}
|
||||
|
||||
// 申请售后单审核接口
|
||||
|
||||
Reference in New Issue
Block a user