This commit is contained in:
richboo111
2022-08-18 16:36:11 +08:00
parent 75679bf4d1
commit 8b6fe6e92b
3 changed files with 5 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.MethodGet, url, strings.NewReader(string(data)))
request, _ := http.NewRequest(http.MethodPost, url, strings.NewReader(string(data)))
request.Header.Set("Content-Type", "application/json")
return request
},