aa
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user