mirror of https://github.com/KingRan/KR.git
parent
6e6bbc20ca
commit
833bad79db
|
@ -67,6 +67,7 @@ if (Fileexists) {
|
||||||
}
|
}
|
||||||
let lnrun = 0;
|
let lnrun = 0;
|
||||||
let llgetshare = false;
|
let llgetshare = false;
|
||||||
|
let NoNeedCodes = [];
|
||||||
!(async() => {
|
!(async() => {
|
||||||
await requireConfig();
|
await requireConfig();
|
||||||
if (!cookiesArr[0]) {
|
if (!cookiesArr[0]) {
|
||||||
|
@ -274,6 +275,19 @@ async function masterHelpShare() {
|
||||||
if(llhelp){
|
if(llhelp){
|
||||||
console.log('开始助力好友')
|
console.log('开始助力好友')
|
||||||
for (let code of newShareCodes) {
|
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}`);
|
console.log(`${$.UserName}开始助力: ${code}`);
|
||||||
if (!code) continue;
|
if (!code) continue;
|
||||||
if (!$.farmInfo.farmUserPro) {
|
if (!$.farmInfo.farmUserPro) {
|
||||||
|
@ -297,6 +311,7 @@ async function masterHelpShare() {
|
||||||
} else if ($.helpResult.helpResult.code === '9') {
|
} else if ($.helpResult.helpResult.code === '9') {
|
||||||
console.log(`【助力好友结果】: 之前给【${$.helpResult.helpResult.masterUserInfo.nickName}】助力过了`);
|
console.log(`【助力好友结果】: 之前给【${$.helpResult.helpResult.masterUserInfo.nickName}】助力过了`);
|
||||||
} else if ($.helpResult.helpResult.code === '10') {
|
} else if ($.helpResult.helpResult.code === '10') {
|
||||||
|
NoNeedCodes.push(code);
|
||||||
console.log(`【助力好友结果】: 好友【${$.helpResult.helpResult.masterUserInfo.nickName}】已满五人助力`);
|
console.log(`【助力好友结果】: 好友【${$.helpResult.helpResult.masterUserInfo.nickName}】已满五人助力`);
|
||||||
} else {
|
} else {
|
||||||
console.log(`助力其他情况:${JSON.stringify($.helpResult.helpResult)}`);
|
console.log(`助力其他情况:${JSON.stringify($.helpResult.helpResult)}`);
|
||||||
|
|
Loading…
Reference in New Issue