From c062229ff177cbf243b22cf35c72e6e2b1274d3d Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Tue, 11 Apr 2023 12:39:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=83=20docs:=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=90=9C=E4=B9=A6=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/query.js | 4 ++-- utils/books.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/query.js b/apps/query.js index 0d8cb2d..bdce166 100644 --- a/apps/query.js +++ b/apps/query.js @@ -344,7 +344,7 @@ export class query extends plugin { async searchBookById(e) { let keyword = e.msg.replace(/#bookid/, "").trim(); if (_.isEmpty(keyword)) { - e.reply(`请输入书名,例如:#搜书 12`); + e.reply(`请输入书名,例如:#bookid 13366067`); return true; } @@ -357,7 +357,7 @@ export class query extends plugin { } try { const res = await getBookDetail(e, id, source); - await this.reply(await Bot.makeForwardMsg(res)); + e.reply(await Bot.makeForwardMsg(res)); } catch (err) { logger.error(err); e.reply("搜书正在施工🚧"); diff --git a/utils/books.js b/utils/books.js index d73c2e0..dc0503a 100644 --- a/utils/books.js +++ b/utils/books.js @@ -178,7 +178,7 @@ async function getZHelper(e, keyword) { * @param e * @param id * @param source - * @returns {Promise>} + * @returns {Promise} */ async function getBookDetail(e, id, source) { return axios @@ -215,8 +215,8 @@ async function getBookDetail(e, id, source) { const cleverPass = `https://rapidupload.1kbtool.com/${reqUrl}`; const cleverPass2 = `https://rulite.1kbtool.com/${reqUrl}`; return [ - `Libgen:${Libgen}`, - `ipfs:${ipfs}`, + // `Libgen:${Libgen}`, + // `ipfs:${ipfs}`, `秒传:${cleverPass}`, `秒传Lite:${cleverPass2}`, ].map(item => {