From ac02db12ec0812ca110ab231354446d090b56def Mon Sep 17 00:00:00 2001 From: lyz05 <294068487@qq.com> Date: Sat, 7 Jan 2023 14:42:51 +0800 Subject: [PATCH] =?UTF-8?q?hotfix:=20=E4=BF=AE=E5=A4=8D=E7=88=B1=E5=A5=87?= =?UTF-8?q?=E8=89=BA=E7=9F=AD=E8=A7=86=E9=A2=91=E6=97=A0=E6=B3=95=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=BC=B9=E5=B9=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api/iqiyi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/iqiyi.js b/routes/api/iqiyi.js index 1c58754..1019760 100644 --- a/routes/api/iqiyi.js +++ b/routes/api/iqiyi.js @@ -75,7 +75,7 @@ function Iqiyi() { const font = extract(xml, "font"); // 控制步长,减小内存占用 - const step = Math.floor(danmaku.length*length/10000); + const step = Math.ceil(danmaku.length*length/10000); // console.log(step) for (let i = 0; i < danmaku.length; i+=step) { // console.log(bulletInfo)