This commit is contained in:
suyl
2021-08-17 10:46:35 +08:00
parent 389d29366d
commit 8a60851d4d
8 changed files with 107 additions and 18 deletions

View File

@@ -7,7 +7,7 @@ import (
)
func TestOrderGet(t *testing.T) {
result, err := api.OrderGet("2157781636259071682")
result, err := api.OrderGet("5032717275039729232")
if err != nil {
t.Fatal(err)
} else {

View File

@@ -79,16 +79,17 @@ func TestShopAptitudeGet(t *testing.T) {
func TestShopUpdate(t *testing.T) {
params := map[string]interface{}{
KeyName: "好菜鲜生-测试店",
KeyPhone: "13812345678",
KeyBaiduShopID: testShopBaiduID,
"longitude": 116.307884,
"latitude": 40.036828,
"coord_type": "amap",
"province": "131",
"city": "131",
"county": "1960",
"address": "北京市海淀区上地信息路甲9号",
//KeyName: "好菜鲜生(龙宫市场店)",
//KeyPhone: "13812345678",
KeyBaiduShopID: "32267358118",
//"longitude": 116.307884,
//"latitude": 40.036828,
//"coord_type": "amap",
//"province": "131",
//"city": "131",
//"county": "1960",
//"address": "北京市海淀区上地信息路甲9号",
"shop_logo": "http://image.jxc4.com/image/e078b225d7b232b4497a689dbf65159e.jpg",
}
err := api.ShopUpdate(params)
if err != nil {