This commit is contained in:
richboo111
2022-08-19 15:04:11 +08:00
parent 0445a0087d
commit 104c6f7a60
2 changed files with 5 additions and 3 deletions

View File

@@ -59,8 +59,10 @@ func (a *API) CreateOrderByTicktock(param *TickTokCreateOrder) (string, string,
// 获取抖音token
func (a *API) GetTiktokToken() error {
tokenReq := make(map[string]interface{}, 3)
tokenReq["appid"] = TiktokAppId
tokenReq["secret"] = TiktokSecret
tokenReq["appid"] = TiktokJXDJAppID
tokenReq["secret"] = TiktokJXDJSecret
//tokenReq["appid"] = TiktokAppId
//tokenReq["secret"] = TiktokSecret
tokenReq["grant_type"] = "client_credential"
globals.SugarLogger.Debug("=============", tokenReq)
result, err := a.AccessAPI2(GetTiktokToken, tokenReq)

View File

@@ -11,7 +11,7 @@ const (
TiktokAppId = "tta6a1d01c399f264201"
TiktokSecret = "5c08a0465cf0f996af254a03b6c2548defef87ad"
TiktokJXDJAppID = "ttaceeda5333d7a7ab01"
tiktokJXDJSecret = "5c8492ec2744fb72bb6cc356983f3cfc317f85d4"
TiktokJXDJSecret = "5c8492ec2744fb72bb6cc356983f3cfc317f85d4"
)
// OauthAccessTokenResData access_token