From 2a917f20f91780b50babc87aa4de97de294f7711 Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Wed, 15 Mar 2023 23:44:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=20=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E6=90=9C=E4=B9=A6=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/query.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/query.js b/apps/query.js index d4a2fd5..74722e9 100644 --- a/apps/query.js +++ b/apps/query.js @@ -586,7 +586,9 @@ export class query extends plugin { }) await this.reply(await Bot.makeForwardMsg(bookMethods)) // 异步获取直连 - if (source === Buffer.from("ei1saWJpcmFyeQ==", "base64").toString("utf8")) { + console.log(source); + console.log(source === Buffer.from("ei1saWJyYXJ5", "base64").toString("utf8")); + if (source === Buffer.from("ei1saWJyYXJ5", "base64").toString("utf8")) { this.getDirectDownload(title).then(async res => { const directDownloadUrls = res.map(item => { return { @@ -595,7 +597,9 @@ export class query extends plugin { user_id: this.e.user_id, } }) - await this.reply(await Bot.makeForwardMsg(directDownloadUrls??"无直连下载")) + if (directDownloadUrls.length) { + await this.reply(await Bot.makeForwardMsg(directDownloadUrls)) + } }) } });