Merge pull request #592 from FanchangWang/master

This commit is contained in:
lxk0301
2021-01-11 21:09:38 +08:00
committed by GitHub

View File

@@ -211,10 +211,7 @@ function shareCodesFormat() {
// console.log(`第${$.index}个京东账号的助力码:::${jdFruitShareArr[$.index - 1]}`)
if (jxncShareCodeArr[$.index - 1]) {
currentShareCode = jxncShareCodeArr[$.index - 1].split('@');
let length = currentShareCode.length;
if (length < 3) {
currentShareCode.push(...(shareCode.split('@').splice(0, 3 - length)));
}
currentShareCode.push(...(shareCode.split('@')));
} else {
$.log(`由于您第${$.index}个京东账号未提供shareCode,将采纳本脚本自带的助力码`)
currentShareCode = shareCode.split('@');
@@ -242,10 +239,10 @@ async function jdJXNC() {
await $.wait(500);
const endInfo = await getTaskList();
getMessage(endInfo, startInfo);
await submitInviteId($.UserName);
await $.wait(500);
let next = await helpFriends();
if (next) {
await submitInviteId($.UserName);
await $.wait(500);
while (true) {
assistUserShareCode = await getAssistUser();
if (assistUserShareCode) {
@@ -459,6 +456,7 @@ function helpShareCode(code) {
$.log('助力码与当前账号相同,跳过助力。准备进行下一个助力');
resolve(true);
}
$.log(`即将助力 share code${code}`);
$.get(
taskUrl('help', `active=${$.info.active}&joinnum=${$.info.joinnum}&smp=${code}`),
async (err, resp, data) => {