From 509b2047c93649545af9a653160e95b48b3c82eb Mon Sep 17 00:00:00 2001 From: liangho-ng <1330326873@qq.com> Date: Mon, 25 Mar 2024 11:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E6=9C=80=E5=8F=B3=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/tools.js b/apps/tools.js index abf5ce0..4ceb468 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -1305,7 +1305,8 @@ export class tools extends plugin { async zuiyou(e) { // #最右#分享一条有趣的内容给你,不好看算我输。请戳链接>>https://share.xiaochuankeji.cn/hybrid/share/post?pid=365367131&zy_to=applink&share_count=1&m=dc114ccc8e55492642f6a702b510c1f6&d=9e18ca2dace030af656baea96321e0ea353fe5c46097a7f3962b93f995641e962796dd5faa231feea5531ac65547045f&app=zuiyou&recommend=r0&name=n0&title_type=t0 - const url = /(?:https?:\/\/)?(share|share.xiaochuankeji)\.cn\/[A-Za-z\d._?%&+\-=\/#]*/.exec(e.msg)[0]; + let msg = e.msg === undefined ? e.message.shift().data.replaceAll("\\", "") : e.msg.trim(); + const url = /(?:https?:\/\/)?(share|share.xiaochuankeji)\.cn\/[A-Za-z\d._?%&+\-=\/#]*/.exec(msg)[0]; try { const response = await axios.get(url, { headers: {