diff --git a/apps/query.js b/apps/query.js index 219a8e1..f60dfba 100644 --- a/apps/query.js +++ b/apps/query.js @@ -445,7 +445,7 @@ export class query extends plugin { 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 = ""; } const res = await getBookDetail(curMsg, id, source); - await this.reply(await Bot.makeForwardMsg(res)) + await this.reply(await Bot.makeForwardMsg(res)); this.finish("searchBookContext"); } diff --git a/apps/tools.js b/apps/tools.js index e6c24df..0865dfc 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -144,7 +144,7 @@ export class tools extends plugin { const ttwid = resp.headers.get("set-cookie"); const odin_tt = "a09d8eb0d95b7b9adb4b6fc6591918bfb996096967a7aa4305bd81b5150a8199d2e29ed21883cdd7709c5beaa2be3baa"; - const passport_csrf_token = '2f142a9bb5db1f81f249d6fc997fe4a1' + const passport_csrf_token = "2f142a9bb5db1f81f249d6fc997fe4a1"; const headers = { "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", @@ -152,7 +152,9 @@ export class tools extends plugin { 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 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参数 axios .post(`http://47.115.200.238/xg/path?url=${params.replaceAll("&", "%26")}`, {