mirror of
https://github.com/xiaoqidun/tipdw.git
synced 2024-11-23 11:26:46 +08:00
docs(更新演示): 更新演示地址
This commit is contained in:
parent
34d8ce7ac0
commit
f18eb90657
@ -4,7 +4,7 @@ Golang 腾讯IP定位库
|
|||||||
|
|
||||||
# 在线演示
|
# 在线演示
|
||||||
|
|
||||||
- [https://aite.xyz/tipdw](https://aite.xyz/tipdw)
|
- [https://aite.xyz/demo/tipdw](https://aite.xyz/demo/tipdw)
|
||||||
|
|
||||||
# 类似项目
|
# 类似项目
|
||||||
|
|
||||||
|
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
|||||||
module github.com/xiaoqidun/tipdw
|
module github.com/xiaoqidun/tipdw
|
||||||
|
|
||||||
go 1.17
|
go 1.19
|
||||||
|
4
tipdw.go
4
tipdw.go
@ -3,7 +3,7 @@ package tipdw
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
@ -63,7 +63,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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user