This commit is contained in:
邹宗楠
2024-04-03 15:10:26 +08:00
parent a837666e1a
commit 3f97450f12
2 changed files with 5 additions and 12 deletions

View File

@@ -3,7 +3,6 @@ package weixinapi
import (
"bytes"
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"math/rand"
"mime/multipart"
"net/http"
@@ -92,12 +91,7 @@ func (a *API) AccessAPI(action string, params map[string]interface{}, body strin
}
params2["access_token"] = accessToken
}
globals.SugarLogger.Debugf("===========param 2 := %s", utils.Format4Output(params2, false))
globals.SugarLogger.Debugf("===========api 2 := %s", utils.Format4Output(a.appID, false))
globals.SugarLogger.Debugf("===========api 2 := %s", utils.Format4Output(a.secret, false))
globals.SugarLogger.Debugf("===========api 2 := %s", utils.Format4Output(a.token, false))
fullURL := utils.GenerateGetURL(prodURL, action, params2)
// baseapi.SugarLogger.Debug(fullURL)
err = platformapi.AccessPlatformAPIWithRetry(a.client,
func() *http.Request {