huangjiajun 4 mesi fa
parent
commit
0ddbccda07
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      app/task/svc/svc_kuaishou_auth.go

+ 1
- 1
app/task/svc/svc_kuaishou_auth.go Vedi File

@@ -33,7 +33,7 @@ func KuaishouAuth() {
}
teamAccessRefreshToken := gjson.Get(token, "refresh_token").String()
teamAccessTime := time.Now().Unix() + gjson.Get(token, "expires_in").Int() - 60
cache.SetEx("kuaishou:"+kuaishouAppkey, accessToken, int(gjson.Get(token, "expires_in").Int()-60))
cache.SetEx("kuaishou:"+kuaishouAppkey, accessToken, int(gjson.Get(token, "expires_in").Int()))
db.MasterListCfgSave("0", "kuaishou_official_access_token", accessToken)
db.MasterListCfgSave("0", "kuaishou_official_expires_in", utils.Int64ToStr(teamAccessTime))
db.MasterListCfgSave("0", "kuaishou_official_refresh_token", teamAccessRefreshToken)


Caricamento…
Annulla
Salva