From a0dd6a15e8ede1447e21bbe0dfa09190b5adde66 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 27 Oct 2023 09:26:00 +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_task.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/task/svc/svc_tik_tok_task.go b/app/task/svc/svc_tik_tok_task.go index 7ae1ac2..fad82fd 100644 --- a/app/task/svc/svc_tik_tok_task.go +++ b/app/task/svc/svc_tik_tok_task.go @@ -26,12 +26,8 @@ func TikTokTask() { appidList := offical.MasterListCfgGetOneData("0", "tik_tok_task_appid") split := strings.Split(appidList, ";") for _, v := range split { - appidTime := offical.MasterListCfgGetOneData("0", "tik_tok_task_appid_time_"+v) - if appidTime == "" { - appidTime = utils.Int64ToStr(time.Now().Unix()) - } - startTime := utils.StrToInt64(appidTime) - endTime := startTime + 7*86400 + endTime := time.Now().Unix() + startTime := endTime - 7*86400 if endTime > time.Now().Unix() { endTime = time.Now().Unix() }