update
This commit is contained in:
@@ -74,21 +74,21 @@ const JD_API_HOST = 'https://api.m.jd.com/';
|
|||||||
await jdBeanHome();
|
await jdBeanHome();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i = 0; i < cookiesArr.length; i++) {
|
for (let i = 0; i < cookiesArr.length; i++) {
|
||||||
if (cookiesArr[i]) {
|
if (cookiesArr[i]) {
|
||||||
$.UserName = decodeURIComponent(cookie.match(/pt_pin=(.+?);/) && cookie.match(/pt_pin=(.+?);/)[1])
|
$.UserName = decodeURIComponent(cookie.match(/pt_pin=(.+?);/) && cookie.match(/pt_pin=(.+?);/)[1])
|
||||||
console.log(`${$.UserName}去帮助下一个人`)
|
console.log(`${$.UserName}去帮助下一个人`)
|
||||||
cookie = cookiesArr[i];
|
cookie = cookiesArr[i];
|
||||||
if ($.newShareCodes.length > 1) {
|
if ($.newShareCodes.length > 1) {
|
||||||
let code = $.newShareCodes[(i + 1) % $.newShareCodes.length]
|
let code = $.newShareCodes[(i + 1) % $.newShareCodes.length]
|
||||||
await help(code[0], code[1])
|
await help(code[0], code[1])
|
||||||
}
|
}
|
||||||
if (helpAuthor && $.authorCode) {
|
if (helpAuthor && $.authorCode) {
|
||||||
console.log(`去帮助作者`)
|
console.log(`去帮助作者`)
|
||||||
await help($.authorCode[0], $.authorCode[1])
|
await help($.authorCode[0], $.authorCode[1])
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})()
|
})()
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
$.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')
|
$.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')
|
||||||
|
@@ -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 = `gaVXW_NJ0KPEA2LyUhoXzA==`;
|
const tuanActiveId = `cKw-LGBsjl0XLu9coQ0d4A==`;
|
||||||
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=='];
|
const inviteCodes = ['V5LkjP4WRyjeCKR9VRwcRX0bBuTz7MEK0-E99EJ7u0k=', 'PDPM257r_KuQhil2Y7koNw==', "gB99tYLjvPcEFloDgamoBw==", '-OvElMzqeyeGBWazWYjI1Q=='];
|
||||||
@@ -1014,7 +1014,7 @@ function CreateTuan() {
|
|||||||
}
|
}
|
||||||
async function joinLeaderTuan() {
|
async function joinLeaderTuan() {
|
||||||
await updateTuanIds();
|
await updateTuanIds();
|
||||||
if (!$.tuanIdS) await updateTuanIdsCDN();
|
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');
|
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
|
||||||
@@ -1204,7 +1204,9 @@ function updateTuanIdsCDN(url = 'https://raw.fastgit.org/lxk0301/updateTeam/mast
|
|||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${JSON.stringify(err)}`)
|
console.log(`${JSON.stringify(err)}`)
|
||||||
} else {
|
} else {
|
||||||
$.tuanIdS = JSON.parse(data);
|
if (safeGet(data)) {
|
||||||
|
$.tuanIdS = JSON.parse(data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
$.logErr(e, resp)
|
$.logErr(e, resp)
|
||||||
|
@@ -136,7 +136,7 @@ async function doChannelsListTask(taskId, taskType) {
|
|||||||
async function helpFriends() {
|
async function helpFriends() {
|
||||||
await updateInviteCode();
|
await updateInviteCode();
|
||||||
if (!$.inviteCodes) await updateInviteCodeCDN();
|
if (!$.inviteCodes) await updateInviteCodeCDN();
|
||||||
if (!$.inviteCodes) await updateInviteCodeCDN('https://cdn.jsdelivr.net/gh/lxk0301/updateTeam@master/jd_updateSmallHomeInviteCode.json');
|
if (!$.inviteCodes) await updateInviteCodeCDN('https://gitee.com/lxk0301/updateTeam/raw/master/jd_updateSmallHomeInviteCode.json');
|
||||||
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