This commit is contained in:
邹宗楠
2022-11-01 18:58:47 +08:00
parent a95509eb41
commit 49a780f92e
7 changed files with 32 additions and 28 deletions

View File

@@ -57,13 +57,15 @@ var (
const (
DeliveryServiceCodeSuperRapid = 4002 // 飞速达
DeliveryServiceCodeRapid = 100004 // 快速达
DeliveryServiceCodeIntime = 100006 // 及时
DeliveryServiceCodeRapid = 100029 // 快速达,时效型
DeliveryServiceLocalDa = 100009 // 同城
DeliveryServiceCodeIntime = 100006 // 及时达(这个暂时没用)
DeliveryServiceCodeTogether = 4013 // 集中送
//DeliveryServiceCodeSuperRapid = 4002 // 飞速达
//DeliveryServiceCodeRapid = 4011 // 快速达
//DeliveryServiceCodeIntime = 100006 // 及时达
//DeliveryServiceCodeTogether = 4013 // 集中送
)
const (

View File

@@ -64,17 +64,17 @@ func TestCreateOrderByShop(t *testing.T) {
DeliveryID: 123456789,
OrderID: "order_123456789",
// 设置测试门店 id测试门店的坐标地址为 97235456,31065079高德坐标配送范围3km
ShopID: "test_0001",
DeliveryServiceCode: DeliveryServiceCodeIntime,
ReceiverName: "xjh",
ReceiverAddress: "九里堤",
ReceiverPhone: "18112345678",
ReceiverLng: 97235456,
ReceiverLat: 31065079,
CoordinateType: CoordinateTypeMars,
GoodsValue: 12.34,
GoodsWeight: 3.4,
OrderType: OrderTypeASAP,
ShopID: "test_0001",
//DeliveryServiceCode: DeliveryServiceCodeIntime,
ReceiverName: "xjh",
ReceiverAddress: "九里堤",
ReceiverPhone: "18112345678",
ReceiverLng: 97235456,
ReceiverLat: 31065079,
CoordinateType: CoordinateTypeMars,
GoodsValue: 12.34,
GoodsWeight: 3.4,
OrderType: OrderTypeASAP,
}
order, err := api.CreateOrderByShop2(basicParams)