This commit is contained in:
邹宗楠
2025-07-04 10:03:17 +08:00
parent e57de856e7
commit 0b11cd2ec6
6 changed files with 69 additions and 14 deletions

View File

@@ -56,7 +56,7 @@ func (a *API) AccessAPI(baseUrl, action, method string, pathParam string, bizPar
func() *http.Request {
var request *http.Request
if http.MethodPost == method {
// 全路径请求参数
// 全路径请求参数s
fullURL := utils.GenerateGetURL(baseUrl, action, nil)
request, _ = http.NewRequest(http.MethodPost, fullURL, strings.NewReader(utils.Map2URLValues(bizParams).Encode()))
request.Header.Set("charset", "UTF-8")