This commit is contained in:
richboo111
2022-08-19 09:22:22 +08:00
parent 8b6fe6e92b
commit 909cc9ab3f
4 changed files with 11 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ func (a *API) GetTiktokOauth(code string) (*TiktokOauthResone, error) {
tokenReq["code"] = code
tokenReq["secret"] = a.GetSecret()
tokenReq["anonymous_code"] = ""
globals.SugarLogger.Debug("输出tokenReq", tokenReq)
result, err := a.AccessAPI2(GetTiktokOauth, tokenReq)
if err != nil {
return nil, err
@@ -28,6 +28,7 @@ func (a *API) GetTiktokOauth(code string) (*TiktokOauthResone, error) {
if oauthAccessToken.ErrNo != 0 {
return nil, errors.New(oauthAccessToken.ErrTips)
}
globals.SugarLogger.Debug("再来输出一下oauthAccessToken", oauthAccessToken)
return oauthAccessToken, nil
}