fix: 适配多架构和平台

This commit is contained in:
spiritlhl
2025-03-31 13:33:26 +00:00
parent babcb62e02
commit 6150948093
6 changed files with 460 additions and 89 deletions

View File

@@ -24,7 +24,6 @@ func FetchJsonFromURL(url, netType string, enableHeader bool, additionalHeader s
if netType != "tcp4" && netType != "tcp6" {
return nil, fmt.Errorf("Invalid netType: %s. Expected 'tcp4' or 'tcp6'.", netType)
}
// 创建 HTTP 客户端
client := req.C()
client.SetTimeout(7 * time.Second).