支持多平台linux-amd64 linux-arm64 win
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user