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)