This commit is contained in:
richboo111
2022-08-17 17:33:21 +08:00
parent 811e2d862f
commit 19a038837e

View File

@@ -3,6 +3,7 @@ package tiktok
import (
"errors"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
)
// 获取抖音登录授权2
@@ -12,6 +13,7 @@ func (a *API) GetTiktokOauth(code string) (*TiktokOauthResone, error) {
tokenReq["code"] = code
tokenReq["secret"] = a.GetSecret()
tokenReq["anonymous_code"] = ""
globals.SugarLogger.Debug("打印appid,secret", tokenReq["appid"], tokenReq["secret"])
result, err := a.AccessAPI2(GetTiktokOauth, tokenReq)
if err != nil {
return nil, err