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); // 总结