From 4fd11f3569cfa8f65147b729c57b646e181e6948 Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Mon, 17 Jun 2024 09:23:49 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E5=8F=91=E9=80=81=E6=8E=92=E5=90=8D=E4=BF=A1=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E9=A2=91=E7=8E=87=E4=B8=BA=E6=AF=8F1=E5=B0=8F=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schedule/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/schedule/index.ts b/schedule/index.ts index 6e90f30..29ccb65 100644 --- a/schedule/index.ts +++ b/schedule/index.ts @@ -5,9 +5,8 @@ import sendRank from "./rank"; export const initSchedule = async () => { // 定时任务,每15分钟刷新一次token schedule.scheduleJob("*/15 * * * *", resetAccessToken); - // 每天的早九到晚九点,每20分钟发送一次排行榜 - schedule.scheduleJob("*/20 9-21 * * *", sendRank); + // 每天的早九到晚九点,每1小时发送一次排行榜 + schedule.scheduleJob("0 9-21 * * *", sendRank); // 立即执行一次 resetAccessToken(); - sendRank(); };