1
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -23,7 +24,16 @@ func TestPoiGetIDs(t *testing.T) {
|
||||
}
|
||||
|
||||
func Test1111(t *testing.T) {
|
||||
fmt.Println(utils.Float64TwoInt(float64(1132) / float64(2441) * float64(805)))
|
||||
result, err := api.PoiMGet([]string{"17821732"})
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
for _, v := range result {
|
||||
if strings.Contains(v.Name, "京西") {
|
||||
data := fmt.Sprintf("%s %s ", v.AppPoiCode, v.Name) + fmt.Sprintf("<table><img src=%s height=100 width=100></table>", v.PicURL)
|
||||
fmt.Println(data)
|
||||
}
|
||||
}
|
||||
}
|
||||
func TestPoiMGet(t *testing.T) {
|
||||
result, err := api.PoiMGet([]string{"17821732"})
|
||||
|
||||
Reference in New Issue
Block a user