This commit is contained in:
邹宗楠
2022-08-24 14:03:21 +08:00
parent c28bef2ae0
commit d3c3dbf388
3 changed files with 15 additions and 11 deletions

View File

@@ -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 {