新增抖音授权登录

This commit is contained in:
邹宗楠
2022-04-14 17:02:41 +08:00
parent 65852ad289
commit 13757d515d
13 changed files with 1307 additions and 5 deletions

View File

@@ -228,10 +228,6 @@ func (a *API) signParams(params url.Values) string {
}
func (a *API) AccessAPI2(baseURL, action string, params map[string]interface{}) (retVal *ResponseResult, err error) {
// if params == nil {
// panic("params is nil!")
// }
params2 := utils.Map2URLValues(params)
if baseURL == mtpsAPIURL {
params2.Set("appkey", a.appKey)
@@ -241,7 +237,6 @@ func (a *API) AccessAPI2(baseURL, action string, params map[string]interface{})
} else if a.GetCookieCount() == 0 {
return nil, fmt.Errorf("需要设置Store Cookie才能使用此方法")
}
// baseapi.SugarLogger.Debug(params2.Encode())
err = platformapi.AccessPlatformAPIWithRetry(a.client,
func() *http.Request {