From 833bad79dbb1a45d238de44b4b5f711877ec095f Mon Sep 17 00:00:00 2001 From: KingRan Date: Sun, 27 Feb 2022 14:36:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_fruit_help.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/jd_fruit_help.js b/jd_fruit_help.js index 6ce9dfb..ec7bd59 100644 --- a/jd_fruit_help.js +++ b/jd_fruit_help.js @@ -67,6 +67,7 @@ if (Fileexists) { } let lnrun = 0; let llgetshare = false; +let NoNeedCodes = []; !(async() => { await requireConfig(); if (!cookiesArr[0]) { @@ -274,6 +275,19 @@ async function masterHelpShare() { if(llhelp){ console.log('开始助力好友') for (let code of newShareCodes) { + if(NoNeedCodes){ + var llnoneed=false; + for (let NoNeedCode of NoNeedCodes) { + if (code==NoNeedCode){ + llnoneed=true; + break; + } + } + if(llnoneed){ + console.log(`${code}助力已满,跳过...`); + continue; + } + } console.log(`${$.UserName}开始助力: ${code}`); if (!code) continue; if (!$.farmInfo.farmUserPro) { @@ -297,6 +311,7 @@ async function masterHelpShare() { } else if ($.helpResult.helpResult.code === '9') { console.log(`【助力好友结果】: 之前给【${$.helpResult.helpResult.masterUserInfo.nickName}】助力过了`); } else if ($.helpResult.helpResult.code === '10') { + NoNeedCodes.push(code); console.log(`【助力好友结果】: 好友【${$.helpResult.helpResult.masterUserInfo.nickName}】已满五人助力`); } else { console.log(`助力其他情况:${JSON.stringify($.helpResult.helpResult)}`);