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)}`);