From 0ddbccda0786a0671d6ea9c6b6f3cc9474223ed2 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 28 Feb 2025 11:24:44 +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_kuaishou_auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/task/svc/svc_kuaishou_auth.go b/app/task/svc/svc_kuaishou_auth.go index 627526d..d92129f 100644 --- a/app/task/svc/svc_kuaishou_auth.go +++ b/app/task/svc/svc_kuaishou_auth.go @@ -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)