From 4ccb1690a02d66dc784dadc8c16724c3944cea89 Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Sat, 13 Jul 2024 19:45:26 +0800 Subject: [PATCH] fix:panel coldtime --- apps/panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/panel.js b/apps/panel.js index 8c3579f..4aed472 100644 --- a/apps/panel.js +++ b/apps/panel.js @@ -31,7 +31,7 @@ export class Panel extends ZZZPlugin { const uid = await this.getUID(); if (!uid) return; const lastQueryTime = await redis.get(`ZZZ:PANEL:${uid}:LASTTIME`); - const coldTime = settings.getConfig('gacha').interval || 300; + const coldTime = settings.getConfig('panel').interval || 300; if (lastQueryTime && Date.now() - lastQueryTime < 1000 * coldTime) { await this.reply(`${coldTime}秒内只能刷新一次,请稍后再试`); return;