fix,京喜工厂活动延长,截止时间到2021-12-31日
This commit is contained in:
@@ -31,7 +31,7 @@ const JD_API_HOST = 'https://m.jingxi.com';
|
|||||||
const notify = $.isNode() ? require('./sendNotify') : '';
|
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||||
let jdNotify = true;//是否关闭通知,false打开通知推送,true关闭通知推送
|
let jdNotify = true;//是否关闭通知,false打开通知推送,true关闭通知推送
|
||||||
const randomCount = $.isNode() ? 20 : 5;
|
const randomCount = $.isNode() ? 20 : 5;
|
||||||
const tuanActiveId = `6S9y4sJUfA2vPQP6TLdVIQ==`;
|
let tuanActiveId = `6S9y4sJUfA2vPQP6TLdVIQ==`;
|
||||||
const jxOpenUrl = `openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%20%22des%22:%20%22m%22,%20%22url%22:%20%22https://wqsd.jd.com/pingou/dream_factory/index.html%22%20%7D`;
|
const jxOpenUrl = `openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%20%22des%22:%20%22m%22,%20%22url%22:%20%22https://wqsd.jd.com/pingou/dream_factory/index.html%22%20%7D`;
|
||||||
let cookiesArr = [], cookie = '', message = '';
|
let cookiesArr = [], cookie = '', message = '';
|
||||||
const inviteCodes = ['V5LkjP4WRyjeCKR9VRwcRX0bBuTz7MEK0-E99EJ7u0k=', 'PDPM257r_KuQhil2Y7koNw==', "gB99tYLjvPcEFloDgamoBw==", '-OvElMzqeyeGBWazWYjI1Q==', 'GFwo6PntxDHH95ZRzZ5uAg=='];
|
const inviteCodes = ['V5LkjP4WRyjeCKR9VRwcRX0bBuTz7MEK0-E99EJ7u0k=', 'PDPM257r_KuQhil2Y7koNw==', "gB99tYLjvPcEFloDgamoBw==", '-OvElMzqeyeGBWazWYjI1Q==', 'GFwo6PntxDHH95ZRzZ5uAg=='];
|
||||||
@@ -1018,18 +1018,20 @@ function CreateTuan() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
async function joinLeaderTuan() {
|
async function joinLeaderTuan() {
|
||||||
await updateTuanIds();
|
if ($.tuanIdS && $.tuanIdS.tuanIds) {
|
||||||
if (!$.tuanIdS) await updateTuanIdsCDN('https://gitee.com/lxk0301/updateTeam/raw/master/jd_updateFactoryTuanId.json');
|
|
||||||
if (!$.tuanIdS) await updateTuanIdsCDN('https://cdn.jsdelivr.net/gh/lxk0301/updateTeam@master/jd_updateFactoryTuanId.json');
|
|
||||||
for (let tuanId of $.tuanIdS.tuanIds) {
|
for (let tuanId of $.tuanIdS.tuanIds) {
|
||||||
if (!tuanId) continue
|
if (!tuanId) continue
|
||||||
await JoinTuan(tuanId);
|
await JoinTuan(tuanId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
$.tuanIdS = null;
|
||||||
if (!$.tuanIdS) await updateTuanIdsCDN('https://gitee.com/shylocks/updateTeam/raw/main/jd_updateFactoryTuanId.json');
|
if (!$.tuanIdS) await updateTuanIdsCDN('https://gitee.com/shylocks/updateTeam/raw/main/jd_updateFactoryTuanId.json');
|
||||||
|
if ($.tuanIdS && $.tuanIdS.tuanIds) {
|
||||||
for (let tuanId of $.tuanIdS.tuanIds) {
|
for (let tuanId of $.tuanIdS.tuanIds) {
|
||||||
if (!tuanId) continue
|
if (!tuanId) continue
|
||||||
await JoinTuan(tuanId);
|
await JoinTuan(tuanId);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function JoinTuan(tuanId) {
|
function JoinTuan(tuanId) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
@@ -1338,8 +1340,15 @@ function shareCodesFormat() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
function requireConfig() {
|
function requireConfig() {
|
||||||
return new Promise(resolve => {
|
return new Promise(async resolve => {
|
||||||
|
await updateTuanIdsCDN('https://gitee.com/lxk0301/updateTeam/raw/master/jd_updateFactoryTuanId.json');
|
||||||
|
if (!$.tuanIdS) await updateTuanIds();
|
||||||
|
if (!$.tuanIdS) await updateTuanIdsCDN('https://cdn.jsdelivr.net/gh/lxk0301/updateTeam@master/jd_updateFactoryTuanId.json');
|
||||||
|
if ($.tuanIdS && $.tuanIdS.tuanActiveId) {
|
||||||
|
tuanActiveId = $.tuanIdS.tuanActiveId;
|
||||||
|
}
|
||||||
console.log(`开始获取${$.name}配置文件\n`);
|
console.log(`开始获取${$.name}配置文件\n`);
|
||||||
|
console.log(`tuanActiveId: ${tuanActiveId}`)
|
||||||
//Node.js用户请在jdCookie.js处填写京东ck;
|
//Node.js用户请在jdCookie.js处填写京东ck;
|
||||||
const shareCodes = $.isNode() ? require('./jdDreamFactoryShareCodes.js') : '';
|
const shareCodes = $.isNode() ? require('./jdDreamFactoryShareCodes.js') : '';
|
||||||
console.log(`共${cookiesArr.length}个京东账号\n`);
|
console.log(`共${cookiesArr.length}个京东账号\n`);
|
||||||
|
Reference in New Issue
Block a user