mirror of
https://github.com/xiaoqidun/aipdw.git
synced 2024-09-08 01:58:04 +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
|
||||
}
|
||||
|
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
||||
module github.com/xiaoqidun/aipdw
|
||||
|
||||
go 1.17
|
||||
go 1.19
|
||||
|
Loading…
Reference in New Issue
Block a user