This commit is contained in:
lxk0301
2021-05-15 00:32:29 +08:00
parent c63870ca8f
commit 6453ee22b9

View File

@ -75,11 +75,11 @@ const JD_API_HOST = 'https://api.m.jd.com/';
cookie = cookiesArr[i];
if ($.newShareCodes.length > 1) {
let code = $.newShareCodes[(i + 1) % $.newShareCodes.length]
await help(code.shareCode, code.groupCode)
await help(code[0], code[1])
}
if (helpAuthor && $.authorCode) {
console.log(`去帮助作者`)
const helpRes = await help($.authorCode[0], $.authorCode[1])
const helpRes = await help(code.shareCode, code.groupCode)
if (helpRes && helpRes.data.respCode === 'SG209') {
console.log(`助力次数已耗尽,跳出助力`)
break;