mirror of
https://github.com/xiaoqidun/aipdw.git
synced 2024-12-04 00:29:15 +08:00
docs(更新演示): 更新演示地址
This commit is contained in:
parent
6804ad03c0
commit
bb8f9974a8
@ -4,7 +4,7 @@ Golang 高德IP定位库
|
||||
|
||||
# 在线演示
|
||||
|
||||
- [https://aite.xyz/aipdw](https://aite.xyz/aipdw)
|
||||
- [https://aite.xyz/demo/aipdw](https://aite.xyz/demo/aipdw)
|
||||
|
||||
# 类似项目
|
||||
|
||||
|
4
aipdw.go
4
aipdw.go
@ -4,7 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
"sync"
|
||||
@ -66,7 +66,7 @@ func QueryIP(sk string, key string, ip string) (result Result, err error) {
|
||||
return
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user