aa
This commit is contained in:
@@ -36,16 +36,14 @@ func TestPoiMGet(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPoiSave(t *testing.T) {
|
||||
result, err := api.PoiMGet([]string{testPoiCode})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
poiParams := utils.FilterMapNilMembers(utils.Struct2FlatMap(result[0]))
|
||||
poiParams["name"] = "中国"
|
||||
err = api.PoiSave(testPoiCode, poiParams)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
//result, err := api.PoiMGet([]string{testPoiCode})
|
||||
//if err != nil {
|
||||
// t.Fatal(err)
|
||||
//}
|
||||
poiParams := map[string]interface{}{}
|
||||
//utils.FilterMapNilMembers(utils.Struct2FlatMap(result[0]))
|
||||
poiParams["name"] = "京西果园·果切·水果捞(宝山店)"
|
||||
api.PoiSave("9202094", poiParams)
|
||||
}
|
||||
|
||||
func TestPoiTagList(t *testing.T) {
|
||||
@@ -60,7 +58,7 @@ func TestPoiTagList(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestImageUploadByURL(t *testing.T) {
|
||||
result, err := api.ImageUploadByURL(testPoiCode, "hello.jpg", "http://image.jxc4.com/56cd1e88ada3660f37548c2d29ea2158.jpg")
|
||||
result, err := api.ImageUploadByURL("11918886", "菜市800x600.jpg", "http://image.jxc4.com/image/ff8c9443c894bfb4822f7d2f742718df.jpg")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user