mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
✨ feat: acfun 适配短号发送
This commit is contained in:
parent
6003e2ddf3
commit
432ede61d9
@ -149,7 +149,7 @@ export class tools extends plugin {
|
|||||||
fnc: "twitter_x",
|
fnc: "twitter_x",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
reg: "(acfun.cn)",
|
reg: "(acfun.cn|^ac[1-9]{8}$)",
|
||||||
fnc: "acfun",
|
fnc: "acfun",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1024,6 +1024,9 @@ export class tools extends plugin {
|
|||||||
// 适配手机分享:https://m.acfun.cn/v/?ac=32838812&sid=d2b0991bd6ad9c09
|
// 适配手机分享:https://m.acfun.cn/v/?ac=32838812&sid=d2b0991bd6ad9c09
|
||||||
if (inputMsg.includes("m.acfun.cn")) {
|
if (inputMsg.includes("m.acfun.cn")) {
|
||||||
inputMsg = `https://www.acfun.cn/v/ac${ /ac=([^&?]*)/.exec(inputMsg)[1] }`;
|
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 => {
|
parseUrl(inputMsg).then(res => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user