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: {