mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
✨ feat: 集成 Mix 的#验车
This commit is contained in:
parent
fcf2bd9814
commit
2d722c4c3e
@ -402,7 +402,11 @@ export class query extends plugin {
|
|||||||
const tag = e.msg.replace(/#验车/g, "");
|
const tag = e.msg.replace(/#验车/g, "");
|
||||||
|
|
||||||
const reqUrl = `https://whatslink.info/api/v1/link?url=${tag}`;
|
const reqUrl = `https://whatslink.info/api/v1/link?url=${tag}`;
|
||||||
const resp = await axios.get(reqUrl);
|
const resp = await axios.get(reqUrl, {
|
||||||
|
headers: {
|
||||||
|
"User-Agent": COMMON_USER_AGENT,
|
||||||
|
}
|
||||||
|
});
|
||||||
if (!resp.data) {
|
if (!resp.data) {
|
||||||
e.reply("没有找到相关磁力");
|
e.reply("没有找到相关磁力");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user