fix
This commit is contained in:
@@ -79,10 +79,12 @@ const JD_API_HOST = 'https://api.m.jd.com/';
|
||||
}
|
||||
if (helpAuthor && $.authorCode) {
|
||||
console.log(`去帮助作者`)
|
||||
const helpRes = await help(code.shareCode, code.groupCode)
|
||||
if (helpRes && helpRes.data.respCode === 'SG209') {
|
||||
console.log(`助力次数已耗尽,跳出助力`)
|
||||
break;
|
||||
for (let code of $.authorCode) {
|
||||
const helpRes = await help(code.shareCode, code.groupCode);
|
||||
if (helpRes && helpRes.data.respCode === 'SG209') {
|
||||
console.log(`助力次数已耗尽,跳出助力`)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (helpAuthor && $.authorCode2) {
|
||||
|
||||
Reference in New Issue
Block a user