From b2eb767318f2cfbb51cb4f43a364756af2cf1a46 Mon Sep 17 00:00:00 2001 From: RrOrange <542716863@qq.com> Date: Tue, 11 Apr 2023 18:52:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8Dbili?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E8=A7=A3=E6=9E=90=20&=20=E6=90=9C=E4=B9=A6?= =?UTF-8?q?=E6=97=A0=E4=B9=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/query.js | 2 +- apps/tools.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/query.js b/apps/query.js index b57eca3..7e4f2c8 100644 --- a/apps/query.js +++ b/apps/query.js @@ -320,7 +320,7 @@ export class query extends plugin { .flatMap(item => { return item.value.flat(); }); - await e.reply(await Bot.makeForwardMsg(combineRet)); + combineRet.length > 0 && await e.reply(await Bot.makeForwardMsg(combineRet)); // ZHelper 特殊处理 const zHelper = await getZHelper(e, keyword); zHelper.unshift({ diff --git a/apps/tools.js b/apps/tools.js index 384dba1..b20bf82 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -402,7 +402,7 @@ export class tools extends plugin { // 加入图片 biliInfo.unshift(segment.image(pic)) // 限制视频解析 - const durationInMinutes = (pages?.[curPage].duration / 60).toFixed(0); + const durationInMinutes = (curDuration / 60).toFixed(0); biliInfo.push(`\n-----------------------限制说明-----------------------\n当前视频时长约:${durationInMinutes}分钟,\n大于管理员设置的最大时长 ${this.biliDuration / 60} 分钟!`) e.reply(biliInfo); // 总结