From 0ed772f136632e8eb643d2d70ec5adb223e0fdbc Mon Sep 17 00:00:00 2001 From: anonymous Date: Thu, 10 Dec 2020 15:04:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A2=E4=BA=AC=E8=B1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_bean_home.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/jd_bean_home.js b/jd_bean_home.js index 84312dab..c894efbc 100644 --- a/jd_bean_home.js +++ b/jd_bean_home.js @@ -25,7 +25,6 @@ const notify = $.isNode() ? require('./sendNotify') : ''; //Node.js用户请在jdCookie.js处填写京东ck; const jdCookieNode = $.isNode() ? require('./jdCookie.js') : ''; let jdNotify = true;//是否关闭通知,false打开通知推送,true关闭通知推送 -const randomCount = $.isNode() ? 20 : 5; //IOS等用户直接用NobyDa的jd cookie let cookiesArr = [], cookie = '', message; if ($.isNode()) { @@ -66,6 +65,17 @@ const JD_API_HOST = 'https://api.m.jd.com/'; await jdBeanHome(); } } + for (let i = 0; i < cookiesArr.length; i++) { + if (cookiesArr[i]) { + $.UserName = decodeURIComponent(cookie.match(/pt_pin=(.+?);/) && cookie.match(/pt_pin=(.+?);/)[1]) + console.log(`${$.UserName}去帮助下一个人`) + cookie = cookiesArr[i]; + let code = $.newShareCodes[(i + 1) % $.newShareCodes.length] + await help(code[0], code[1]) + // 去帮助作者 + await help("4C95367420A5D13E4BEE034620F963B4", "786588200200192000") + } + } })() .catch((e) => { $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')