From 4b86f61bacd392c4e2e3c5feb6fecb51a9d4b324 Mon Sep 17 00:00:00 2001 From: Elegy233 <82034747+wan0ge@users.noreply.github.com> Date: Mon, 6 Oct 2025 14:43:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AE=E4=B8=8D?= =?UTF-8?q?=E5=8E=BB=E9=87=8D=E6=97=B6=E5=80=BC=E6=97=A0=E6=95=88=20(#39)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- danmu_api/worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/danmu_api/worker.js b/danmu_api/worker.js index 2d9d352..d26bb4a 100644 --- a/danmu_api/worker.js +++ b/danmu_api/worker.js @@ -193,11 +193,11 @@ let groupMinute = DEFAULT_GROUP_MINUTE; function resolveGroupMinute(env) { if (env && env.GROUP_MINUTE) { const n = parseInt(env.GROUP_MINUTE, 10); - if (!Number.isNaN(n) && n > 0) return Math.min(n, 30); + if (!Number.isNaN(n) && n >= 0) return Math.min(n, 30); } if (typeof process !== "undefined" && process.env?.GROUP_MINUTE) { const n = parseInt(process.env.GROUP_MINUTE, 10); - if (!Number.isNaN(n) && n > 0) return Math.min(n, 30); + if (!Number.isNaN(n) && n >= 0) return Math.min(n, 30); } return Math.min(DEFAULT_GROUP_MINUTE, 30); }