1
This commit is contained in:
@@ -19,7 +19,7 @@ func TestShopQuery(t *testing.T) {
|
||||
// if err == nil {
|
||||
// t.Fatal("应该报错找不到门店")
|
||||
// }
|
||||
shopInfo, err := api.ShopQuery("800268")
|
||||
shopInfo, err := api.ShopQuery("667553")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -28,18 +28,18 @@ func TestShopQuery(t *testing.T) {
|
||||
|
||||
func TestShopCreate(t *testing.T) {
|
||||
shopInfo := &ShopInfo{
|
||||
ShopID: "800268",
|
||||
ShopName: "手可摘鲜果店",
|
||||
ShopID: "667553",
|
||||
ShopName: "三里家园店",
|
||||
Category: ShopCategoryFruit,
|
||||
SecondCategory: ShopCategoryFruitFruit,
|
||||
ContactName: "李廷杰",
|
||||
ContactPhone: "15828509674",
|
||||
ShopAddress: "四川省成都市双流县华阳街道南湖大道279号",
|
||||
ShopLng: 104051308,
|
||||
ShopLat: 30490037,
|
||||
ContactName: "高朋朋",
|
||||
ContactPhone: "15869188805",
|
||||
ShopAddress: "浙江省杭州市下城区文晖街道三里家园一小区25幢杭州新三里家园农贸市场一层36号",
|
||||
ShopLng: 120190237,
|
||||
ShopLat: 30301060,
|
||||
CoordinateType: CoordinateTypeMars,
|
||||
DeliveryServiceCodes: utils.Int2Str(DeliveryServiceCodeRapid),
|
||||
BusinessHours: "[{\"beginTime\":\"09:00\",\"endTime\":\"22:00\"}]",
|
||||
BusinessHours: "[{\"beginTime\":\"07:00\",\"endTime\":\"19:30\"}]",
|
||||
}
|
||||
_, err := api.ShopCreate(shopInfo)
|
||||
if err != nil {
|
||||
@@ -85,7 +85,9 @@ func TestSimulateReportException(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestName(t *testing.T) {
|
||||
cc := 1
|
||||
cc |= 1 | 2
|
||||
fmt.Println(cc)
|
||||
ShopLat := 3030106
|
||||
if ShopLat <= 9999999 {
|
||||
ShopLat *= 10
|
||||
}
|
||||
fmt.Println(ShopLat)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user