log delete
This commit is contained in:
@@ -3,18 +3,15 @@ package tiktok
|
||||
import (
|
||||
"errors"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
|
||||
// 获取抖音登录授权2
|
||||
func (a *API) GetTiktokOauth(code string) (*TiktokOauthResone, error) {
|
||||
globals.SugarLogger.Debug("初始code=============", code)
|
||||
tokenReq := make(map[string]interface{}, 3)
|
||||
tokenReq["appid"] = a.GetAppID()
|
||||
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,7 +25,6 @@ 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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user