This commit is contained in:
邹宗楠
2025-03-24 15:40:21 +08:00
parent 2663099187
commit cf38acc037
12 changed files with 64 additions and 44 deletions

View File

@@ -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"})