From 0308b921f43a18e2458b098dd9eae3fe0f528789 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 23 Oct 2024 20:13:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/task/svc/svc_tik_tok_chanxuan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/task/svc/svc_tik_tok_chanxuan.go b/app/task/svc/svc_tik_tok_chanxuan.go index f0a61f2..0bf56fb 100644 --- a/app/task/svc/svc_tik_tok_chanxuan.go +++ b/app/task/svc/svc_tik_tok_chanxuan.go @@ -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))