update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
京东京喜工厂
|
京东京喜工厂
|
||||||
更新时间:2020-12-03
|
更新时间:2020-12-04
|
||||||
活动入口 :京东APP->游戏与互动->查看更多->京喜工厂
|
活动入口 :京东APP->游戏与互动->查看更多->京喜工厂
|
||||||
或者: 京东APP首页搜索 "玩一玩" ,造物工厂即可
|
或者: 京东APP首页搜索 "玩一玩" ,造物工厂即可
|
||||||
|
|
||||||
@@ -887,11 +887,12 @@ function CreateTuan() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
async function joinLeaderTuan() {
|
async function joinLeaderTuan() {
|
||||||
for (let tuanId of tuanIDs) {
|
await updateTuanIds();
|
||||||
if (tuanId) {
|
if (!$.tuanIdS) await updateTuanIdsCDN();
|
||||||
await JoinTuan(tuanId);
|
for (let tuanId of $.tuanIdS.tuanIds) {
|
||||||
}
|
if (!tuanId) continue
|
||||||
}
|
await JoinTuan(tuanId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function JoinTuan(tuanId) {
|
function JoinTuan(tuanId) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
@@ -1044,6 +1045,40 @@ function tuanAward(activeId, tuanId, isTuanLeader = true) {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
function updateTuanIds(url = 'https://raw.githubusercontent.com/lxk0301/updateTeam/master/jd_updateFactoryTuanId.json') {
|
||||||
|
return new Promise(resolve => {
|
||||||
|
$.get({url}, (err, resp, data) => {
|
||||||
|
try {
|
||||||
|
if (err) {
|
||||||
|
console.log(`${JSON.stringify(err)}`)
|
||||||
|
} else {
|
||||||
|
$.tuanIdS = JSON.parse(data);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
$.logErr(e, resp)
|
||||||
|
} finally {
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
function updateTuanIdsCDN(url = 'https://cdn.jsdelivr.net/gh/lxk0301/updateTeam@master/jd_updateFactoryTuanId.json') {
|
||||||
|
return new Promise(resolve => {
|
||||||
|
$.get({url}, (err, resp, data) => {
|
||||||
|
try {
|
||||||
|
if (err) {
|
||||||
|
console.log(`${JSON.stringify(err)}`)
|
||||||
|
} else {
|
||||||
|
$.tuanIdS = JSON.parse(data);
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
$.logErr(e, resp)
|
||||||
|
} finally {
|
||||||
|
resolve();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
async function showMsg() {
|
async function showMsg() {
|
||||||
return new Promise(async resolve => {
|
return new Promise(async resolve => {
|
||||||
let ctrTemp;
|
let ctrTemp;
|
||||||
|
@@ -157,7 +157,7 @@ async function doChannelsListTask(taskId, taskType) {
|
|||||||
}
|
}
|
||||||
async function helpFriends() {
|
async function helpFriends() {
|
||||||
await updateInviteCode();
|
await updateInviteCode();
|
||||||
if (!$.updatePkActivityIdRes) await updateInviteCodeCDN();
|
if (!$.inviteCodes) await updateInviteCodeCDN();
|
||||||
for (let item of $.inviteCodes.inviteCode) {
|
for (let item of $.inviteCodes.inviteCode) {
|
||||||
if (!item) continue
|
if (!item) continue
|
||||||
await createAssistUser(item, $.createAssistUserID || "1318106976846299138");
|
await createAssistUser(item, $.createAssistUserID || "1318106976846299138");
|
||||||
|
Reference in New Issue
Block a user