1
This commit is contained in:
@@ -18,7 +18,7 @@ func TestShopQuery(t *testing.T) {
|
||||
// if err == nil {
|
||||
// t.Fatal("应该报错找不到门店")
|
||||
// }
|
||||
shopInfo, err := api.ShopQuery("668089")
|
||||
shopInfo, err := api.ShopQuery("800268")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -27,18 +27,18 @@ func TestShopQuery(t *testing.T) {
|
||||
|
||||
func TestShopCreate(t *testing.T) {
|
||||
shopInfo := &ShopInfo{
|
||||
ShopID: "11726346",
|
||||
ShopName: "测试门店",
|
||||
ShopID: "800268",
|
||||
ShopName: "手可摘鲜果店",
|
||||
Category: ShopCategoryFruit,
|
||||
SecondCategory: ShopCategoryFruitFruit,
|
||||
ContactName: "徐",
|
||||
ContactPhone: "18180948107",
|
||||
ShopAddress: "北京市通州区五所南路与玉桥西路南延交叉口北100米梨园农副产品交易中心 水果区",
|
||||
ShopLng: 116672496,
|
||||
ShopLat: 39879491,
|
||||
ContactName: "李廷杰",
|
||||
ContactPhone: "15828509674",
|
||||
ShopAddress: "四川省成都市双流县华阳街道南湖大道279号",
|
||||
ShopLng: 104051308,
|
||||
ShopLat: 30490037,
|
||||
CoordinateType: CoordinateTypeMars,
|
||||
DeliveryServiceCodes: utils.Int2Str(DeliveryServiceCodeRapid),
|
||||
BusinessHours: "[{\"beginTime\":\"09:00\",\"endTime\":\"18:00\"}]",
|
||||
BusinessHours: "[{\"beginTime\":\"09:00\",\"endTime\":\"22:00\"}]",
|
||||
}
|
||||
_, err := api.ShopCreate(shopInfo)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user