修改快递单号

This commit is contained in:
苏尹岚
2020-06-04 17:15:15 +08:00
parent 9b9f04ca3d
commit 2f092aff59
2 changed files with 27 additions and 0 deletions

View File

@@ -447,3 +447,22 @@ func (a *API) PhoneSensltiveInfo(orderId, accessKey string) (fakeMobile string,
}
return fakeMobile, err
}
//订单的订单号转移
//https://porder.shop.jd.com/order/global/updateWaybill
func (a *API) UpdateWaybill(orderId, logiId, logiNo string) (err error) {
var waybiilList = []map[string]interface{}{}
param := map[string]interface{}{
"logiId": logiId,
"logiNos": []string{logiNo},
"overseas": false,
"logiNo": logiNo,
}
waybiilList = append(waybiilList, param)
_, err = a.AccessStorePage2("https://porder.shop.jd.com/order/global/updateWaybill", map[string]interface{}{
"orderId": orderId,
"globalOrder": false,
"waybillList": waybiilList,
})
return err
}

View File

@@ -81,3 +81,11 @@ func TestPhoneSensltiveInfo(t *testing.T) {
}
t.Log(utils.Format4Output(result, false))
}
func TestUpdateWaybill(t *testing.T) {
err := api.UpdateWaybill("123076499052", "1274", "88328977356545 ")
if err != nil {
t.Fatal(err)
}
// t.Log(utils.Format4Output(result, false))
}