From e881ad75d545c596a0f7b9a7db4d66140b46100d Mon Sep 17 00:00:00 2001 From: wisz2021 Date: Mon, 7 Jun 2021 10:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=A2=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E5=90=8E=E6=8F=90=E7=A4=BA=E6=AC=A1=E6=95=B0=EF=BC=8C=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E8=B4=A6=E5=8F=B7=E5=8F=AA=E5=8F=91=E9=80=81=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_dreamFactory.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jd_dreamFactory.js b/jd_dreamFactory.js index aed1d11c..58619641 100644 --- a/jd_dreamFactory.js +++ b/jd_dreamFactory.js @@ -1,6 +1,6 @@ /* 京东京喜工厂 -更新时间:2021-6-5 +更新时间:2021-6-7 修复做任务、收集电力出现火爆,不能完成任务,重新计算h5st验证 参考自 :https://www.orzlee.com/web-development/2021/03/03/lxk0301-jingdong-signin-scriptjingxi-factory-solves-the-problem-of-unable-to-signin.html 活动入口:京东APP-游戏与互动-查看更多-京喜工厂 @@ -39,7 +39,7 @@ const helpAu = true; //帮作者助力 免费拿活动 const notify = $.isNode() ? require('./sendNotify') : ''; let jdNotify = true;//是否关闭通知,false打开通知推送,true关闭通知推送 const randomCount = $.isNode() ? 20 : 5; -let tuanActiveId = ``; +let tuanActiveId = ``, hasSend = false; const jxOpenUrl = `openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%20%22des%22:%20%22m%22,%20%22url%22:%20%22https://wqsd.jd.com/pingou/dream_factory/index.html%22%20%7D`; let cookiesArr = [], cookie = '', message = '', allMessage = ''; const inviteCodes = [ @@ -1061,7 +1061,8 @@ function CreateTuan() { $.tuanIds.push(data.data['tuanId']); } else { //{"msg":"活动已结束,请稍后再试~","nowTime":1621551005,"ret":10218} - if (data['ret'] === 10218 && ($.index % 5 === 0) && (new Date().getHours() % 6 === 0)) { + if (data['ret'] === 10218 && !hasSend && (new Date().getHours() % 6 === 0)) { + hasSend = true; $.msg($.name, '', `京喜工厂拼团瓜分电力活动团ID(activeId)已失效\n请自行抓包替换(Node环境变量为TUAN_ACTIVEID,iOS端在BoxJx)或者联系作者等待更新`); if ($.isNode()) await notify.sendNotify($.name, `京喜工厂拼团瓜分电力活动团ID(activeId)已失效\n请自行抓包替换(Node环境变量为TUAN_ACTIVEID,iOS端在BoxJx)或者联系作者等待更新`) }