From 153c3971ed95dd0aaf8f75ab70f2cf1c705f83e3 Mon Sep 17 00:00:00 2001 From: gitupdate Date: Tue, 27 Apr 2021 16:00:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_syj.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jd_syj.js b/jd_syj.js index d9c845c4..cd115346 100644 --- a/jd_syj.js +++ b/jd_syj.js @@ -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`) } }