mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🌈 style: 格式化代码,保持清洁
This commit is contained in:
parent
d7d69020b5
commit
add79e8fdb
@ -445,7 +445,7 @@ export class query extends plugin {
|
|||||||
source = "";
|
source = "";
|
||||||
}
|
}
|
||||||
const res = await getBookDetail(e, id, source);
|
const res = await getBookDetail(e, id, source);
|
||||||
await this.reply(await Bot.makeForwardMsg(res))
|
await this.reply(await Bot.makeForwardMsg(res));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -470,7 +470,7 @@ export class query extends plugin {
|
|||||||
source = "";
|
source = "";
|
||||||
}
|
}
|
||||||
const res = await getBookDetail(curMsg, id, source);
|
const res = await getBookDetail(curMsg, id, source);
|
||||||
await this.reply(await Bot.makeForwardMsg(res))
|
await this.reply(await Bot.makeForwardMsg(res));
|
||||||
this.finish("searchBookContext");
|
this.finish("searchBookContext");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ export class tools extends plugin {
|
|||||||
const ttwid = resp.headers.get("set-cookie");
|
const ttwid = resp.headers.get("set-cookie");
|
||||||
const odin_tt =
|
const odin_tt =
|
||||||
"a09d8eb0d95b7b9adb4b6fc6591918bfb996096967a7aa4305bd81b5150a8199d2e29ed21883cdd7709c5beaa2be3baa";
|
"a09d8eb0d95b7b9adb4b6fc6591918bfb996096967a7aa4305bd81b5150a8199d2e29ed21883cdd7709c5beaa2be3baa";
|
||||||
const passport_csrf_token = '2f142a9bb5db1f81f249d6fc997fe4a1'
|
const passport_csrf_token = "2f142a9bb5db1f81f249d6fc997fe4a1";
|
||||||
const headers = {
|
const headers = {
|
||||||
"user-agent":
|
"user-agent":
|
||||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
|
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
|
||||||
@ -152,7 +152,9 @@ export class tools extends plugin {
|
|||||||
Cookie: `ttwid=${ttwid};odin_tt=${odin_tt};passport_csrf_token=${passport_csrf_token}`,
|
Cookie: `ttwid=${ttwid};odin_tt=${odin_tt};passport_csrf_token=${passport_csrf_token}`,
|
||||||
};
|
};
|
||||||
const dyApi = "https://www.douyin.com/aweme/v1/web/aweme/detail/?";
|
const dyApi = "https://www.douyin.com/aweme/v1/web/aweme/detail/?";
|
||||||
const params = `msToken=${generateRandomStr(107)}&aweme_id=${douId}&aid=1128&version_name=23.5.0&device_platform=android&os_version=2333`;
|
const params = `msToken=${generateRandomStr(
|
||||||
|
107,
|
||||||
|
)}&aweme_id=${douId}&aid=1128&version_name=23.5.0&device_platform=android&os_version=2333`;
|
||||||
// xg参数
|
// xg参数
|
||||||
axios
|
axios
|
||||||
.post(`http://47.115.200.238/xg/path?url=${params.replaceAll("&", "%26")}`, {
|
.post(`http://47.115.200.238/xg/path?url=${params.replaceAll("&", "%26")}`, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user