mirror of
https://github.com/xiaoqidun/aipdw.git
synced 2025-04-03 20:57:53 +08:00
docs(更新演示): 更新演示地址
This commit is contained in:
@ -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"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sync"
|
"sync"
|
||||||
@ -66,7 +66,7 @@ func QueryIP(sk string, key string, ip string) (result Result, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
body, err := ioutil.ReadAll(resp.Body)
|
body, err := io.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user