优化
This commit is contained in:
@ -88,6 +88,7 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
console.log(`账号 ${$.UserName} 开始给 【${$.tuanList[j]['assistedPinEncrypted']}】助力`)
|
||||
await helpFriendTuan($.tuanList[j])
|
||||
if(!$.canHelp) break
|
||||
await $.wait(200)
|
||||
}
|
||||
}
|
||||
if ($.canHelp) {
|
||||
@ -97,6 +98,7 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
||||
console.log(`账号 ${$.UserName} 开始给作者lxk0301和随机团 ${$.authorTuanList[j]['assistedPinEncrypted']}助力`)
|
||||
await helpFriendTuan($.authorTuanList[j])
|
||||
if(!$.canHelp) break
|
||||
await $.wait(200)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -599,6 +601,7 @@ function helpFriendTuan(body) {
|
||||
else if (data.resultCode === '9200011') console.log('助力结果:已经助力过\n')
|
||||
else if (data.resultCode === '2400205') console.log('助力结果:团已满\n')
|
||||
else if (data.resultCode === '2400203') {console.log('助力结果:助力次数已耗尽\n');$.canHelp = false}
|
||||
else if (data.resultCode === '9000000') {console.log('助力结果:活动火爆,跳出\n');$.canHelp = false}
|
||||
else console.log(`助力结果:未知错误\n${JSON.stringify(data)}\n\n`)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user