diff --git a/jd_dreamFactory.js b/jd_dreamFactory.js index 6bce9e33..3664873b 100644 --- a/jd_dreamFactory.js +++ b/jd_dreamFactory.js @@ -1,6 +1,6 @@ /* 京东京喜工厂 -更新时间:2021-4-8 +更新时间:2021-4-9 修复做任务、收集电力出现火爆,不能完成任务,重新计算h5st验证 参考自 :https://www.orzlee.com/web-development/2021/03/03/lxk0301-jingdong-signin-scriptjingxi-factory-solves-the-problem-of-unable-to-signin.html 活动入口:京东APP-游戏与互动-查看更多-京喜工厂 @@ -104,8 +104,8 @@ if ($.isNode()) { if (!$.isLogin) { continue } - if ($.canHelp) await joinLeaderTuan();//参团 $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]) + await joinLeaderTuan();//参团 if ((cookiesArr && cookiesArr.length >= ($.tuanNum || 5)) && $.canHelp) { console.log(`\n账号${$.UserName} 内部相互进团\n`); for (let item of $.tuanIds) { @@ -1430,7 +1430,7 @@ function taskTuanUrl(functionId, body = '', stk) { "Cookie": cookie, "Host": "m.jingxi.com", "Referer": "https://st.jingxi.com/pingou/dream_factory/divide.html", - "User-Agent": "jdpingou;iPhone;3.15.2;13.5.1;90bab9217f465a83a99c0b554a946b0b0d5c2f7a;network/wifi;model/iPhone12,1;appBuild/100365;ADID/696F8BD2-0820-405C-AFC0-3C6D028040E5;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/1;hasOCPay/0;supportBestPay/0;session/14;pap/JA2015_311210;brand/apple;supportJDSHWK/1;" + "User-Agent": "jdpingou" } } }