抖音二维码

This commit is contained in:
邹宗楠
2022-06-08 18:16:57 +08:00
parent 7df9d95734
commit 5a2e8d7cc1
6 changed files with 63 additions and 7 deletions

View File

@@ -14,8 +14,6 @@ import (
func (a *API) Sign(paramsMap map[string]interface{}) string {
var paramsArr []string
for k, v := range paramsMap {
fmt.Println(k)
fmt.Println(v)
if k == "other_settle_params" || k == "app_id" || k == "sign" || k == "thirdparty_id " {
continue
}
@@ -63,7 +61,7 @@ func (a *API) GetTiktokToken() error {
tokenReq["appid"] = a.GetAppID()
tokenReq["secret"] = a.GetSecret()
tokenReq["grant_type"] = "client_credential"
result, err := a.AccessAPI2("https://developer.toutiao.com/api/apps/v2/token", tokenReq)
result, err := a.AccessAPI2(GetTiktokToken, tokenReq)
if err != nil {
return err
}