This commit is contained in:
苏尹岚
2020-10-28 17:03:13 +08:00
parent 9eefd9a729
commit 30d13e39a5
2 changed files with 41 additions and 15 deletions

View File

@@ -94,10 +94,10 @@ func TestWaybillReceive(t *testing.T) {
SalePlat: SalePlatSourceDelivery,
CustomerCode: CustomerCode,
OrderID: "883289609977992",
SenderName: "金牛店",
SenderName: "测试别派件",
SenderAddress: "四川省成都市金牛区加州湾v派",
SenderTel: "18160030913",
ReceiveName: "明珠怡园",
ReceiveName: "后面会取消",
ReceiveAddress: "四川省成都市天府大道",
ReceiveTel: "18160030913",
PackageCount: 1,
@@ -114,7 +114,7 @@ func TestWaybillReceive(t *testing.T) {
func TestCancelWayBill(t *testing.T) {
err := api.CancelWayBill(&CancelWayBillParam{
WaybillCode: "JDVD00717018403",
WaybillCode: "JDVD01096487452",
CustomerCode: CustomerCode,
Source: "JOS",
CancelReason: "测试",
@@ -126,8 +126,16 @@ func TestCancelWayBill(t *testing.T) {
// t.Log(utils.Format4Output(result, false))
}
func TestWaybillQuery(t *testing.T) {
result, err := api.WaybillQuery("JDVD01093075824")
func TestQueryDynamicTraceInfo(t *testing.T) {
result, err := api.QueryDynamicTraceInfo("JDVD01096487452")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestWaybillQuery(t *testing.T) {
result, err := api.WaybillQuery("JDVD01096487452")
if err != nil {
t.Fatal(err)
}