This commit is contained in:
苏尹岚
2021-01-22 15:00:15 +08:00
parent fc595546ea
commit dbeeab48ab
12 changed files with 247 additions and 45 deletions

View File

@@ -20,6 +20,7 @@ const (
sigKey = "sign"
IsvSource = "ISV0020000000068"
DepartmentNo = "EBU4418046609452"
ShipperNo = "CYS4398046511104"
ShopNo = "ESP0020000066348"
WarehouseNo = "110014006"
CustomerCode = "028K595510"
@@ -88,6 +89,7 @@ type AddOrderParam struct {
ShopNo string `json:"shopNo"` //店铺编号(B2C订单必填B2BsoType=2订单非必填)
DepartmentNo string `json:"departmentNo"` //事业部编号且与pin匹配
WarehouseNo string `json:"warehouseNo"` //库房编号,事业部开启寻源拆分服务可不填;否则必填;
ShipperNo string `json:"shipperNo"` //承运商编号
SalesPlatformOrderNo string `json:"salesPlatformOrderNo"` //销售平台订单号如果销售平台来源为京东平台则该字段不能为空长度不超过200
SalePlatformSource string `json:"salePlatformSource"` //销售平台来源
ConsigneeName string `json:"consigneeName"` //收货人姓名长度不能超20

View File

@@ -127,7 +127,7 @@ func TestCancelWayBill(t *testing.T) {
}
func TestQueryDynamicTraceInfo(t *testing.T) {
result, err := api.QueryDynamicTraceInfo("JDVD01333952184")
result, err := api.QueryDynamicTraceInfo("JDVD01376429529")
if err != nil {
t.Fatal(err)
}
@@ -135,7 +135,7 @@ func TestQueryDynamicTraceInfo(t *testing.T) {
}
func TestWaybillQuery(t *testing.T) {
result, err := api.WaybillQuery("JDVD01319320290")
result, err := api.WaybillQuery("JDVD01345722555")
if err != nil {
t.Fatal(err)
}