支持多平台linux-amd64 linux-arm64 win

This commit is contained in:
BBIT-Kai
2026-01-04 11:44:10 +08:00
parent 7b669ffbd0
commit 209d087fa5
24 changed files with 227 additions and 49 deletions
+3 -1
View File
@@ -12,7 +12,8 @@ import (
"sentinel/pkg/log"
)
const baseURL = "http://127.0.0.1:13011"
// const baseURL = "http://127.0.0.1:13011"
const baseURL = "https://ai.ronsunny.cn:8090"
var client = &http.Client{
Timeout: 5 * time.Second,
@@ -59,6 +60,7 @@ func do(method, path string, query map[string]string, body any, out any) error {
return err
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("apikey", "NzusyzcLIUoZ22tflHN2sOjHrry3W7zJ")
resp, err := client.Do(req)
if err != nil {