From e425ae39ce05fa19aeb73758ec40aaab13d18ad1 Mon Sep 17 00:00:00 2001 From: zjk2017 <2548836866@qq.com> Date: Thu, 1 Aug 2024 21:59:19 +0800 Subject: [PATCH] Update JSYX.js --- JSYX.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/JSYX.js b/JSYX.js index 6e558d1..bd5e26d 100644 --- a/JSYX.js +++ b/JSYX.js @@ -29,7 +29,7 @@ let notice = ''; })().catch((e) => {$.log(e)}).finally(() => {$.done({});}); async function main() { - console.log(decrypt("xxxx==")) + console.log(decrypt("xxxx==") console.log('作者:@xzxxn777\n频道:https://t.me/xzxxn777\n群组:https://t.me/xzxxn7777\n自用机场推荐:https://xn--diqv0fut7b.com\n') for (const item of JSYX) { id = item.id; @@ -173,7 +173,7 @@ async function lotteryPost(url,body = {}) { 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'zh-CN,zh;q=0.9' }, - body: JSON.stringify(body), + body: encrypt(body) } $.post(options, async (err, resp, data) => { try { @@ -182,7 +182,7 @@ async function lotteryPost(url,body = {}) { console.log(`${$.name} API请求失败,请检查网路重试`) } else { await $.wait(2000); - resolve(JSON.parse(data)); + resolve(decrypt(data)); } } catch (e) { $.logErr(e, resp)