This commit is contained in:
苏尹岚
2021-02-08 11:45:00 +08:00
parent a376ce1e48
commit 9c2c0930fd
11 changed files with 67 additions and 22 deletions

View File

@@ -18,18 +18,18 @@ func TestShopList(t *testing.T) {
func TestShopCreate(t *testing.T) {
result, err := api.ShopCreate(map[string]interface{}{
"shop_id": "667550",
"name": "互利超市(金牛店)",
"name": "互利超市(金牛店)",
"supplier_id": "1486975681715",
"province": 32,
"city": 75,
"county": 698,
"address": "成都市金牛区二环路北一段8号",
"phone": 18980429231,
"service_phone": 18980429231,
"ivr_phone": 18048531223,
"phone": 18160030913, // 18980429231,
"service_phone": 18160030913, //18980429231,
"ivr_phone": 18160030913, //18048531223,
"longitude": 104.043677,
"latitude": 30.692361,
"shop_logo": "http://image.jxc4.com/image/4573e7789c647d4961f8955e3733dbd6.tem.jpg",
"shop_logo": "https://image-star.elemecdn.com/pb/dab294b0d3e9fa4b5fa63007ff02d06e98",
"coord_type": "amap",
"categorys": []map[string]int{
map[string]int{
@@ -53,7 +53,7 @@ func TestShopCreate(t *testing.T) {
}
func TestShopGet(t *testing.T) {
result, err := api.ShopGet("", 335768207) //2233065879
result, err := api.ShopGet("", 2267237821) //2233065879 ,22267134648
if err != nil {
t.Fatal(err)
} else {