更新新接口
This commit is contained in:
3
curl.go
3
curl.go
@@ -78,7 +78,8 @@ func curl_(IP_ADDR string) (string, error) {
|
||||
}
|
||||
|
||||
// 目标 URL
|
||||
URL_ADDR = "https://qifu.baidu.com/ip/geo/v1/district?ip=" + IP_ADDR
|
||||
//URL_ADDR = "https://qifu.baidu.com/ip/geo/v1/district?ip=" + IP_ADDR
|
||||
URL_ADDR = "https://qifu-api.baidubce.com/ip/geo/v1/district?ip=" + IP_ADDR
|
||||
|
||||
// 创建 HTTP 请求
|
||||
HTTP_Request, err = http.NewRequest("GET", URL_ADDR, nil)
|
||||
|
Reference in New Issue
Block a user