This commit is contained in:
suyl
2021-08-06 09:15:41 +08:00
parent 3d7d50294d
commit 879f966bf9
8 changed files with 292 additions and 2 deletions

View File

@@ -102,3 +102,27 @@ func TestRiderLocation(t *testing.T) {
}
t.Logf("lng:%d,lat:%d", lng, lat)
}
func TestPreCreateByShop(t *testing.T) {
_, _, err := api.PreCreateByShop(&PreCreateByShopParam{
DeliveryID: 123456789,
OrderID: "order_123456789",
// 设置测试门店 id测试门店的坐标地址为 97235456,31065079高德坐标配送范围3km
ShopID: "667235",
DeliveryServiceCode: DeliveryServiceCodeRapid,
ReceiverName: "xjh",
ReceiverAddress: "九里堤",
ReceiverPhone: "18112345678",
ReceiverLng: 113860710,
ReceiverLat: 27628259,
CoordinateType: CoordinateTypeMars,
GoodsValue: 12.34,
GoodsWeight: 3.7,
PayTypeCode: 0,
OuterOrderSourceDesc: "103",
})
if err != nil {
t.Fatal(err)
}
//sugarLogger.Debug(result)
}