更新新接口

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)

BIN
denyip

Binary file not shown.

View File

@@ -169,7 +169,7 @@ func saveMapToFile(filePath string) error {
return fmt.Errorf("编码 ProcessedIPMap 失败: %w", err)
}
log.Println("ProcessedIPMap 已成功保存到文件")
//log.Println("ProcessedIPMap 已成功保存到文件")
return nil
}