From 236b241fdfd40cb90efefc4c90fad41b1b78c5ed Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Tue, 1 Oct 2024 13:50:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20pref:=20=E4=BC=98=E5=8C=96=20?= =?UTF-8?q?=E5=93=94=E5=93=A9=E5=93=94=E5=93=A9=20=E4=B8=93=E6=A0=8F?= =?UTF-8?q?=E5=8F=91=E9=80=81=E9=80=BB=E8=BE=91=20&&=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E5=88=87=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 5198414..8b84063 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -717,13 +717,13 @@ export class tools extends plugin { */ async biliArticle(e) { const cvid = e.msg.match(/read\/cv(\d+)/)?.[1]; - logger.info(BILI_ARTICLE_INFO.replace("{}", cvid)); const articleResp = await fetch(BILI_ARTICLE_INFO.replace("{}", cvid), { - headers: BILI_HEADER + headers: { + ...BILI_HEADER + } }); const articleData = (await articleResp.json()).data; - const { title, author_name, origin_image_urls } = articleData; - e.reply(`${ this.identifyPrefix }识别:哔哩哔哩专栏,${ title }-${ author_name }\n`); + const { origin_image_urls } = articleData; if (origin_image_urls) { await e.reply(Bot.makeForwardMsg(origin_image_urls.map(item => { return {