This commit is contained in:
lxk0301
2020-12-12 15:03:44 +08:00
parent 906fd8f5eb
commit 9cfdbdef4c
3 changed files with 19 additions and 17 deletions

View File

@ -31,7 +31,7 @@ const JD_API_HOST = 'https://m.jingxi.com';
const notify = $.isNode() ? require('./sendNotify') : '';
let jdNotify = true;//是否关闭通知false打开通知推送true关闭通知推送
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`;
let cookiesArr = [], cookie = '', message = '';
const inviteCodes = ['V5LkjP4WRyjeCKR9VRwcRX0bBuTz7MEK0-E99EJ7u0k=', 'PDPM257r_KuQhil2Y7koNw==', "gB99tYLjvPcEFloDgamoBw==", '-OvElMzqeyeGBWazWYjI1Q=='];
@ -1014,7 +1014,7 @@ function CreateTuan() {
}
async function joinLeaderTuan() {
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');
for (let tuanId of $.tuanIdS.tuanIds) {
if (!tuanId) continue
@ -1204,8 +1204,10 @@ function updateTuanIdsCDN(url = 'https://raw.fastgit.org/lxk0301/updateTeam/mast
if (err) {
console.log(`${JSON.stringify(err)}`)
} else {
if (safeGet(data)) {
$.tuanIdS = JSON.parse(data);
}
}
} catch (e) {
$.logErr(e, resp)
} finally {

View File

@ -136,7 +136,7 @@ async function doChannelsListTask(taskId, taskType) {
async function helpFriends() {
await updateInviteCode();
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) {
if (!item) continue
await createAssistUser(item, $.createAssistUserID || "1318106976846299138");