This commit is contained in:
richboo111
2022-08-18 16:13:56 +08:00
parent 52b7662609
commit 75679bf4d1
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ func (a *API) AccessAPI2(url string, params map[string]interface{}) (retVal map[
}
err = platformapi.AccessPlatformAPIWithRetry(a.client,
func() *http.Request {
request, _ := http.NewRequest(http.MethodPost, url, strings.NewReader(string(data)))
request, _ := http.NewRequest(http.MethodGet, url, strings.NewReader(string(data)))
request.Header.Set("Content-Type", "application/json")
return request
},