- mtwm PoiInfo
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
testPoiCode = "100077"
|
||||
testPoiCode = "2523687"
|
||||
)
|
||||
|
||||
func TestPoiGetIDs(t *testing.T) {
|
||||
@@ -29,7 +29,7 @@ func TestPoiMGet(t *testing.T) {
|
||||
if len(result) != 1 {
|
||||
t.Fatal("result len is not ok")
|
||||
}
|
||||
if result[0][KeyAppPoiCode] != testPoiCode {
|
||||
if result[0].AppPoiCode != testPoiCode {
|
||||
t.Fatal("test_poi_01 is not equal")
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
@@ -40,7 +40,7 @@ func TestPoiSave(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
poiParams := utils.FilterMapNilMembers(result[0])
|
||||
poiParams := utils.FilterMapNilMembers(utils.Struct2FlatMap(result[0]))
|
||||
poiParams["name"] = "中国"
|
||||
err = api.PoiSave(testPoiCode, poiParams)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user