From 51adf808e2941e837316d2b3c435bfa59801e403 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Thu, 5 May 2022 10:44:51 +0800 Subject: [PATCH] =?UTF-8?q?5-5=09=E4=BF=AE=E5=A4=8D=E7=AD=BE=E5=88=B0bug,?= =?UTF-8?q?=E6=8E=A8=E8=8D=90=E6=89=80=E6=9C=89=E4=BA=BA=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sxtc/sxtc.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sxtc/sxtc.js b/sxtc/sxtc.js index f426d0b..455e0f7 100644 --- a/sxtc/sxtc.js +++ b/sxtc/sxtc.js @@ -5,6 +5,7 @@ * cron 40 7 * * * yml2213_javascript_master/sxtc.js * * 5-4 签到任务 + * 5-5 修复签到bug,推荐所有人更新 * 签到,讲究个日积月累 哈哈哈哈哈 * * 感谢 心雨 的投稿 @@ -18,8 +19,8 @@ */ const $ = new Env("绍兴体彩"); const notify = $.isNode() ? require("./sendNotify") : ""; -const Notify = 1; //0为关闭通知,1为打开通知,默认为1 -const debug = 0; //0为关闭调试,1为打开调试,默认为0 +const Notify = 1 //0为关闭通知,1为打开通知,默认为1 +const debug = 0 //0为关闭调试,1为打开调试,默认为0 ////////////////////// let ckStr = process.env.sxtc_data; let sxtc_dataArr = []; @@ -93,9 +94,9 @@ async function signin_info(timeout = 3 * 1000) { let url = { url: `https://www.shaoxingticai.com/api/front/user/sign/user`, headers: { - 'Authori-zation': ck[0], - 'Host': 'www.shaoxingticai.com', - 'Content-Type': 'application/json', + "Authori-zation": ck[0], + "Host": "www.shaoxingticai.com", + "Content-Type": "application/json", }, body: JSON.stringify({ "all": 0, @@ -107,7 +108,7 @@ async function signin_info(timeout = 3 * 1000) { let result = await httpPost(url, `签到状态`, timeout); if (result.code == 200) { console.log(`\n 签到状态: ${result.message} 🎉 \n`); - if (result.data.signNum == 0) { + if (result.data.isDaySign == false) { console.log(`没有签到,去签到!`); await signin(); } else {