Browse Source

更新

master
huangjiajun 2 months ago
parent
commit
0308b921f4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/task/svc/svc_tik_tok_chanxuan.go

+ 1
- 1
app/task/svc/svc_tik_tok_chanxuan.go View File

@@ -225,7 +225,7 @@ func GetChanxuanToken() string {
getString, err := cache.GetString(key)
if err != nil || getString == "" {
data := chanxuanTikTok.GetToken(tiktokChanxuanId, tiktokChanxuanSecret)
ex := gjson.Get(data, "expires_in_v2").Int() - time.Now().Unix()
ex := gjson.Get(data, "expires_in_v2").Int() - time.Now().Unix() - 60
token := gjson.Get(data, "access_token").String()
if token != "" {
cache.SetEx(key, token, int(ex))


Loading…
Cancel
Save