This commit is contained in:
邹宗楠
2025-08-18 14:15:47 +08:00
parent a315351658
commit 3f3dc97058
5 changed files with 50 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import (
"encoding/json"
"errors"
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"net/http"
"reflect"
"sort"
@@ -209,6 +210,7 @@ func (a *API) AccessAPI2(apiStr string, jdParams map[string]interface{}, traceIn
} else {
fullURL := utils.GenerateGetURL(a.baseURL, apiStr, nil)
// baseapi.SugarLogger.Debug(utils.Map2URLValues(params).Encode())
globals.SugarLogger.Debugf("-----paramsparams- :%s", utils.Format4Output(params, false))
request, _ = http.NewRequest(http.MethodPost, fullURL, strings.NewReader(utils.Map2URLValues(params).Encode()))
request.Header.Set("charset", "UTF-8")
request.Header.Set("Content-Type", "application/x-www-form-urlencoded")