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)],