From c372d07dcd006097c8ef2d0f40e0d40d14eb7078 Mon Sep 17 00:00:00 2001 From: MortalCat <169629556@qq.com> Date: Fri, 27 Jun 2025 21:59:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20patch:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=BF=AB=E6=89=8B=E5=8D=A1=E7=89=87=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 2 +- utils/general-link-adapter.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 79a3411..b101f51 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -169,7 +169,7 @@ export class tools extends plugin { fnc: "bodianMusic", }, { - reg: "(kuaishou.com|ixigua.com|h5.pipix.com|h5.pipigx.com|s.xsj.qq.com|m.okjike.com)", + reg: "(chenzhongtech.com|kuaishou.com|ixigua.com|h5.pipix.com|h5.pipigx.com|s.xsj.qq.com|m.okjike.com)", fnc: "general", }, { diff --git a/utils/general-link-adapter.js b/utils/general-link-adapter.js index d3313ff..c353aaa 100644 --- a/utils/general-link-adapter.js +++ b/utils/general-link-adapter.js @@ -43,7 +43,7 @@ class GeneralLinkAdapter { // 例子:https://www.kuaishou.com/short-video/3xkfs8p4pnd67p4?authorId=3xkznsztpwetngu&streamSource=find&area=homexxbrilliant // https://v.m.chenzhongtech.com/fw/photo/3xburnkmj3auazc // https://v.kuaishou.com/1ff8QP - let msg = /(?:https?:\/\/)?(www|v)\.kuaishou\.com\/[A-Za-z\d._?%&+\-=\/#]*/g.exec(link)[0]; + let msg = /(?:https?:\/\/)?(www|v)\.(kuaishou|m\.chenzhongtech)\.com\/[A-Za-z\d._?%&+\-=\/#]*/g.exec(link)[0]; // 跳转短号 if (msg.includes("v.kuaishou")) { msg = await this.fetchUrl(msg, true); @@ -127,7 +127,7 @@ class GeneralLinkAdapter { async init(link) { logger.mark("[R插件][通用解析]", link) const handlers = new Map([ - [/kuaishou.com/, this.ks.bind(this)], + [/(kuaishou.com|chenzhongtech.com)/, this.ks.bind(this)], [/ixigua.com/, this.xigua.bind(this)], [/h5.pipix.com/, this.pipixia.bind(this)], [/h5.pipigx.com/, this.pipigx.bind(this)],