This commit is contained in:
richboo111
2023-08-09 11:30:16 +08:00
parent dab333f9a4
commit 59e381f571
2 changed files with 38 additions and 26 deletions

View File

@@ -22,27 +22,36 @@ const (
//预下单
func TestPreCreateOrder(t *testing.T) {
param := &PreCreateOrderReq{
DevId: AppID,
ShopId: TestSFStoreID,
UserLng: "116.339392",
UserLat: "40.002349",
UserAddress: "北京市海淀区学清嘉创大厦A座15层",
Weight: 1000,
ProductType: 4,
PushTime: 1684996039,
DevId: 1663705444,
ShopId: "3270426476337",
UserLng: "104.052898",
UserLat: "30.685366",
UserAddress: "四川省成都市金牛区抚琴街道洛克中心写字楼",
Weight: 1,
ProductType: 6,
PushTime: 1691550274,
ShopType: 1,
LbsType: LbsTypeGD,
CityName: "",
TotalPrice: 0,
IsAppoint: 0,
AppointType: 0,
ExpectTime: 0,
LbsType: 2,
IsInsured: 0,
IsPersonDirect: 0,
Vehicle: 0,
DeclaredValue: 0,
GratuityFee: 0,
RiderPickMethod: 1,
ReturnFlag: 1,
//IsAppoint: 0,
//AppointType: 2,
//ExpectPickupTime: int64(time.Now().Unix()),
//RiderPickMethod: 1,
//MultiPickupInfo: []*MultiPickupInfo{{
// PickupShopAddress: "海淀区清河龙岗路51号清润家园小区 永辉",
// PickupLat: "40.030613",
// PickupLng: "116.354787",
//}},
//Shop: {
// "shop_name": "印象汇果园测试店",
// "shop_phone": "18981810340",
// "shop_address": "成都市金牛区沙湾路1号汇龙湾生活广场",
// "shop_lng": "104.052898",
// "shop_lat": "30.685366"
//},
//"multi_pickup_info": null
}
resp, err := api.PreCreateOrder(param)
fmt.Println(resp)