更新新接口

This commit is contained in:
2025-05-30 09:29:58 +08:00
parent a241fb629a
commit ad01a368f8
3 changed files with 3 additions and 2 deletions

View File

@@ -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)