feat: acfun 适配短号发送

This commit is contained in:
zhiyu1998 2024-09-29 20:22:36 +08:00
parent 6003e2ddf3
commit 432ede61d9

View File

@ -149,7 +149,7 @@ export class tools extends plugin {
fnc: "twitter_x",
},
{
reg: "(acfun.cn)",
reg: "(acfun.cn|^ac[1-9]{8}$)",
fnc: "acfun",
},
{
@ -1024,6 +1024,9 @@ export class tools extends plugin {
// 适配手机分享https://m.acfun.cn/v/?ac=32838812&sid=d2b0991bd6ad9c09
if (inputMsg.includes("m.acfun.cn")) {
inputMsg = `https://www.acfun.cn/v/ac${ /ac=([^&?]*)/.exec(inputMsg)[1] }`;
} else if (inputMsg.includes("ac")) {
// 如果是
inputMsg = "https://www.acfun.cn/v/" + /ac\d+/.exec(inputMsg)[0];
}
parseUrl(inputMsg).then(res => {