This commit is contained in:
邹宗楠
2023-05-22 13:42:22 +08:00
parent 8b6916952d
commit 2297a5cc46
3 changed files with 27 additions and 26 deletions

View File

@@ -88,6 +88,7 @@ func (a *API) AccessAPI1(url string, params map[string]interface{}) (retVal map[
err = platformapi.AccessPlatformAPIWithRetry(a.client,
func() *http.Request {
globals.SugarLogger.Debugf("====param := %s", utils.Format4Output(params, false))
globals.SugarLogger.Debugf("====url := %s", utils.Format4Output(url, false))
request, _ := http.NewRequest(http.MethodPost, url, strings.NewReader(utils.Map2URLValues(params).Encode()))
request.Header.Set("Content-Type", "application/json;charset=UTF-8")
return request