From d3ad07ba0fa179255c294cff02ea19f32a50dd83 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Sat, 24 Aug 2024 13:08:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D`zuiyou?= =?UTF-8?q?`=E6=9B=B4=E6=8D=A2=E5=9B=BE=E5=BA=8A=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=A7=A3=E6=9E=90=E5=9B=BE=E7=89=87=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 2f10917..1735c5e 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -1623,12 +1623,11 @@ export class tools extends plugin { const imgSrcRegex = /]*src="([^"]*)"[^>]*\/>/gi; let match; const imgSrcs = []; - while ((match = imgSrcRegex.exec(html)) !== null) { imgSrcs.push(match[1]); // Adds the content of the src attribute to the array } - const images = imgSrcs.filter(item => item.startsWith("http://bd-tbfile.izuiyou.com/img/view/id")) + const images = imgSrcs.filter(item => item.includes("\/img\/view\/id")) // Construct the response object const shortVideoInfo = { @@ -1639,7 +1638,7 @@ export class tools extends plugin { images, }; - e.reply([segment.image(shortVideoInfo.cover), `${ this.identifyPrefix } 识别:最右,${ shortVideoInfo.authorName }\n${ shortVideoInfo.title }`]) + e.reply(`${ this.identifyPrefix } 识别:最右,${ shortVideoInfo.authorName }\n${ shortVideoInfo.title }`) if (shortVideoInfo.images.length > 0) { const replyImages = shortVideoInfo.images.map(item => {