This commit is contained in:
lxk0301 2021-02-20 10:41:17 +08:00
parent 19db973611
commit b2a34b6158
77 changed files with 77 additions and 539 deletions

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://rdcseason.m.jd.com/api/'; const JD_API_HOST = 'https://rdcseason.m.jd.com/api/';
const inviteCodes = [ const inviteCodes = [

View File

@ -44,13 +44,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined); cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }

View File

@ -35,13 +35,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
const inviteCodes = [`P04z54XCjVUm4aW5nJcXCCyoR8C6s-kRmWs@P04z54XCjVUm4aW5m9cZ2bx3y5Ow@P04z54XCjVUm4aW5u2ak7ZCdan1BeYMuZ9HwF34gJjW@P04z54XCjVUm4aW5m9cZ2T6jChKkkjZEdhiKUY`, `P04z54XCjVUm4aW5nJcXCCyoR8C6s-kRmWs@P04z54XCjVUm4aW5m9cZ2bx3y5Ow`]; const inviteCodes = [`P04z54XCjVUm4aW5nJcXCCyoR8C6s-kRmWs@P04z54XCjVUm4aW5m9cZ2bx3y5Ow@P04z54XCjVUm4aW5u2ak7ZCdan1BeYMuZ9HwF34gJjW@P04z54XCjVUm4aW5m9cZ2T6jChKkkjZEdhiKUY`, `P04z54XCjVUm4aW5nJcXCCyoR8C6s-kRmWs@P04z54XCjVUm4aW5m9cZ2bx3y5Ow`];

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
}; };
if (JSON.stringify(process.env).indexOf('GITHUB') > -1) process.exit(0) if (JSON.stringify(process.env).indexOf('GITHUB') > -1) process.exit(0)
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/'; const JD_API_HOST = 'https://api.m.jd.com/';
!(async () => { !(async () => {

View File

@ -38,13 +38,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://digital-floor.m.jd.com/adf/index/'; const JD_API_HOST = 'https://digital-floor.m.jd.com/adf/index/';
!(async () => { !(async () => {

View File

@ -42,13 +42,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/'; const JD_API_HOST = 'https://api.m.jd.com/';
!(async () => { !(async () => {

View File

@ -42,13 +42,7 @@ if ($.isNode()) {
}; };
if (JSON.stringify(process.env).indexOf('GITHUB') > -1) process.exit(0) if (JSON.stringify(process.env).indexOf('GITHUB') > -1) process.exit(0)
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://shopping-festival.m.jd.com/sf/'; const JD_API_HOST = 'https://shopping-festival.m.jd.com/sf/';
!(async () => { !(async () => {

View File

@ -40,13 +40,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {

View File

@ -38,13 +38,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/', actCode = 'lucky-box-001'; const JD_API_HOST = 'https://api.m.jd.com/', actCode = 'lucky-box-001';

View File

@ -34,13 +34,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
const inviteCodes = [`P04z54XCjVUnoaW5nJcXCCyoR8C6i9QR16e`, 'P04z54XCjVUnoaW5m9cZ2T6jChKkh8FWbFAplQ', `P04z54XCjVUnoaW5u2ak7ZCdan1Bdbpik_F9ud7lznm`, `P04z54XCjVUnoaW5m9cZ2ariXVJwFN5uKHNqnc`]; const inviteCodes = [`P04z54XCjVUnoaW5nJcXCCyoR8C6i9QR16e`, 'P04z54XCjVUnoaW5m9cZ2T6jChKkh8FWbFAplQ', `P04z54XCjVUnoaW5u2ak7ZCdan1Bdbpik_F9ud7lznm`, `P04z54XCjVUnoaW5m9cZ2ariXVJwFN5uKHNqnc`];

View File

@ -42,13 +42,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
const inviteCodes = [ const inviteCodes = [

View File

@ -35,13 +35,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';

View File

@ -31,13 +31,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/api'; const JD_API_HOST = 'https://api.m.jd.com/api';
$.newShareCodes = ['21d9b4b51a69839577027beb0aad5105', '8edbdfa148e78f028496cff17e7df35b']; $.newShareCodes = ['21d9b4b51a69839577027beb0aad5105', '8edbdfa148e78f028496cff17e7df35b'];

View File

@ -40,13 +40,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {
await requireConfig(); await requireConfig();

View File

@ -34,13 +34,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
!(async () => { !(async () => {

View File

@ -64,13 +64,7 @@ if ($.isNode()) {
} }
} }
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/api'; const JD_API_HOST = 'https://api.m.jd.com/api';
!(async () => { !(async () => {

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/api'; const JD_API_HOST = 'https://api.m.jd.com/api';
!(async () => { !(async () => {

View File

@ -41,13 +41,7 @@ if ($.isNode()) {
}; };
if(JSON.stringify(process.env).indexOf('GITHUB')>-1) process.exit(0) if(JSON.stringify(process.env).indexOf('GITHUB')>-1) process.exit(0)
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {

View File

@ -35,13 +35,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/api'; const JD_API_HOST = 'https://api.m.jd.com/api';
!(async () => { !(async () => {

View File

@ -39,13 +39,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
const inviteCodes = [ const inviteCodes = [

View File

@ -37,13 +37,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
!(async () => { !(async () => {

View File

@ -41,13 +41,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
const ACT_ID = 'dzvm210168869301' const ACT_ID = 'dzvm210168869301'

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
const inviteCodes = [ const inviteCodes = [

View File

@ -32,13 +32,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
let UserName = ''; let UserName = '';
const JD_API_HOST = `https://api.m.jd.com/client.action`; const JD_API_HOST = `https://api.m.jd.com/client.action`;

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
if(JSON.stringify(process.env).indexOf('GITHUB')>-1) process.exit(0) if(JSON.stringify(process.env).indexOf('GITHUB')>-1) process.exit(0)
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
const inviteCodes = [ const inviteCodes = [

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
!(async () => { !(async () => {

View File

@ -35,13 +35,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
!(async () => { !(async () => {

View File

@ -131,13 +131,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://starsingle.m.jd.com/guardianstar/'; const JD_API_HOST = 'https://starsingle.m.jd.com/guardianstar/';
const inviteCodes = ['65561ad5-af72-4d1c-a5be-37b3de372b67@2d5f579d-e6d1-479e-931f-c275d602caf5@a3551e1d-fb07-40f0-b9ad-d50e4b480098@696cfa20-3719-442a-a331-0e07beaeb375@718868ed-2202-465d-b3a4-54e76b30d02a','65561ad5-af72-4d1c-a5be-37b3de372b67@2d5f579d-e6d1-479e-931f-c275d602caf5'] const inviteCodes = ['65561ad5-af72-4d1c-a5be-37b3de372b67@2d5f579d-e6d1-479e-931f-c275d602caf5@a3551e1d-fb07-40f0-b9ad-d50e4b480098@696cfa20-3719-442a-a331-0e07beaeb375@718868ed-2202-465d-b3a4-54e76b30d02a','65561ad5-af72-4d1c-a5be-37b3de372b67@2d5f579d-e6d1-479e-931f-c275d602caf5']

View File

@ -35,13 +35,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
$.newShareCodes = [`P04z54XCjVUnIaW5nJcXCCyoR8C6p8txXBH`, 'P04z54XCjVUnIaW5m9cZ2T6jChKki0Hfndla5k', 'P04z54XCjVUnIaW5u2ak7ZCdan1BT0NlbBGZ1-rnMYj', 'P04z54XCjVUnIaW5m9cZ2ariXVJwI64DaVTNXQ']; $.newShareCodes = [`P04z54XCjVUnIaW5nJcXCCyoR8C6p8txXBH`, 'P04z54XCjVUnIaW5m9cZ2T6jChKki0Hfndla5k', 'P04z54XCjVUnIaW5u2ak7ZCdan1BT0NlbBGZ1-rnMYj', 'P04z54XCjVUnIaW5m9cZ2ariXVJwI64DaVTNXQ'];

View File

@ -48,13 +48,7 @@ if ($.isNode()) {
}; };
if (JSON.stringify(process.env).indexOf('GITHUB') > -1) process.exit(0) if (JSON.stringify(process.env).indexOf('GITHUB') > -1) process.exit(0)
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/'; const JD_API_HOST = 'https://api.m.jd.com/';
!(async () => { !(async () => {

View File

@ -28,13 +28,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const jdNotify = $.getdata('jdUnbindCardNotify');//是否关闭通知false打开通知推送true关闭通知推送 const jdNotify = $.getdata('jdUnbindCardNotify');//是否关闭通知false打开通知推送true关闭通知推送
let cardPageSize = 200;// 运行一次取消多少个会员卡。数字0表示不注销任何会员卡 let cardPageSize = 200;// 运行一次取消多少个会员卡。数字0表示不注销任何会员卡

View File

@ -134,13 +134,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
!(async () => { !(async () => {

View File

@ -42,13 +42,7 @@ if ($.isNode()) {
}; };
if(JSON.stringify(process.env).indexOf('GITHUB')>-1) process.exit(0) if(JSON.stringify(process.env).indexOf('GITHUB')>-1) process.exit(0)
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {

View File

@ -38,13 +38,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const starID = [ const starID = [
'bolangwutiaoren', 'bolangwutiaoren',

View File

@ -33,13 +33,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/api'; const JD_API_HOST = 'https://api.m.jd.com/api';
!(async () => { !(async () => {

View File

@ -28,13 +28,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async() => { !(async() => {
if (!cookiesArr[0]) { if (!cookiesArr[0]) {

View File

@ -37,13 +37,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {
if (!cookiesArr[0]) { if (!cookiesArr[0]) {

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/'; const JD_API_HOST = 'https://api.m.jd.com/';
!(async () => { !(async () => {

View File

@ -34,13 +34,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = `https://api.m.jd.com/api?appid=jdsupermarket`; const JD_API_HOST = `https://api.m.jd.com/api?appid=jdsupermarket`;

View File

@ -41,13 +41,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://car-member.jd.com/api/'; const JD_API_HOST = 'https://car-member.jd.com/api/';
!(async () => { !(async () => {

View File

@ -40,13 +40,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://car-member.jd.com/api/'; const JD_API_HOST = 'https://car-member.jd.com/api/';
!(async () => { !(async () => {

View File

@ -38,13 +38,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
!(async () => { !(async () => {

View File

@ -38,13 +38,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
!(async () => { !(async () => {

View File

@ -45,13 +45,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!function (n) { !function (n) {
"use strict"; "use strict";

View File

@ -21,13 +21,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!function (n) { !function (n) {
"use strict"; "use strict";

View File

@ -37,13 +37,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {
if (!cookiesArr[0]) { if (!cookiesArr[0]) {

View File

@ -18,13 +18,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const jdNotify = $.getdata('jdUnsubscribeNotify');//是否关闭通知false打开通知推送true关闭通知推送 const jdNotify = $.getdata('jdUnsubscribeNotify');//是否关闭通知false打开通知推送true关闭通知推送
let goodPageSize = $.getdata('jdUnsubscribePageSize') || 20;// 运行一次取消多少个已关注的商品。数字0表示不取关任何商品 let goodPageSize = $.getdata('jdUnsubscribePageSize') || 20;// 运行一次取消多少个已关注的商品。数字0表示不取关任何商品

View File

@ -55,13 +55,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
if (process.env.DREAMFACTORY_FORBID_ACCOUNT) process.env.DREAMFACTORY_FORBID_ACCOUNT.split('&').map((item, index) => Number(item) === 0 ? cookiesArr = [] : cookiesArr.splice(Number(item) - 1 - index, 1)) if (process.env.DREAMFACTORY_FORBID_ACCOUNT) process.env.DREAMFACTORY_FORBID_ACCOUNT.split('&').map((item, index) => Number(item) === 0 ? cookiesArr = [] : cookiesArr.splice(Number(item) - 1 - index, 1))
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {
$.CryptoJS = $.isNode() ? require('crypto-js') : CryptoJS; $.CryptoJS = $.isNode() ? require('crypto-js') : CryptoJS;

View File

@ -29,13 +29,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {

View File

@ -1304,13 +1304,7 @@ function requireConfig() {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
console.log(`${cookiesArr.length}个京东账号\n`) console.log(`${cookiesArr.length}个京东账号\n`)
if ($.isNode()) { if ($.isNode()) {

View File

@ -146,13 +146,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {
if (!cookiesArr[0]) { if (!cookiesArr[0]) {

View File

@ -39,13 +39,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/', actCode = 'visa-card-001'; const JD_API_HOST = 'https://api.m.jd.com/', actCode = 'visa-card-001';

View File

@ -45,13 +45,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
if (process.env.JDFACTORY_FORBID_ACCOUNT) process.env.JDFACTORY_FORBID_ACCOUNT.split('&').map((item, index) => Number(item) === 0 ? cookiesArr = [] : cookiesArr.splice(Number(item) - 1 - index, 1)) if (process.env.JDFACTORY_FORBID_ACCOUNT) process.env.JDFACTORY_FORBID_ACCOUNT.split('&').map((item, index) => Number(item) === 0 ? cookiesArr = [] : cookiesArr.splice(Number(item) - 1 - index, 1))
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
let wantProduct = ``;//心仪商品名称 let wantProduct = ``;//心仪商品名称
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
const inviteCodes = [ const inviteCodes = [

View File

@ -44,13 +44,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
let message = '', subTitle = ''; let message = '', subTitle = '';
let FEED_NUM = ($.getdata('joyFeedCount') * 1) || 10; //每次喂养数量 [10,20,40,80] let FEED_NUM = ($.getdata('joyFeedCount') * 1) || 10; //每次喂养数量 [10,20,40,80]

View File

@ -41,13 +41,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
let jdNotify = true;//是否开启静默运行。默认true开启 let jdNotify = true;//是否开启静默运行。默认true开启
let message = '', subTitle = ''; let message = '', subTitle = '';

View File

@ -37,13 +37,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://jdjoy.jd.com'; const JD_API_HOST = 'https://jdjoy.jd.com';
!(async () => { !(async () => {

View File

@ -84,13 +84,7 @@ if ($.isNode()) {
}) })
} else { } else {
//支持 "京东多账号 Ck 管理"的cookie //支持 "京东多账号 Ck 管理"的cookie
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
if ($.getdata('jd_joy_invite_pin')) { if ($.getdata('jd_joy_invite_pin')) {
invite_pins = []; invite_pins = [];
invite_pins.push($.getdata('jd_joy_invite_pin')); invite_pins.push($.getdata('jd_joy_invite_pin'));

View File

@ -47,13 +47,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
let message = '', subTitle = ''; let message = '', subTitle = '';

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/api'; const JD_API_HOST = 'https://api.m.jd.com/api';
!(async () => { !(async () => {

View File

@ -33,13 +33,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
let jdNotify = true;//是否开启静默运行默认true开启 let jdNotify = true;//是否开启静默运行默认true开启

View File

@ -41,13 +41,7 @@ if ($.isNode()) {
}; };
if(JSON.stringify(process.env).indexOf('GITHUB')>-1) process.exit(0) if(JSON.stringify(process.env).indexOf('GITHUB')>-1) process.exit(0)
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/client.action'; const JD_API_HOST = 'https://api.m.jd.com/client.action';
!(async () => { !(async () => {

View File

@ -40,13 +40,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/api'; const JD_API_HOST = 'https://api.m.jd.com/api';

View File

@ -35,13 +35,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {

View File

@ -504,13 +504,7 @@ function requireConfig() {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
console.log(`${cookiesArr.length}个京东账号\n`) console.log(`${cookiesArr.length}个京东账号\n`)
if ($.isNode()) { if ($.isNode()) {

View File

@ -42,13 +42,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {
if (!cookiesArr[0]) { if (!cookiesArr[0]) {

View File

@ -576,13 +576,7 @@ function requireConfig() {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
console.log(`${cookiesArr.length}个京东账号\n`) console.log(`${cookiesArr.length}个京东账号\n`)
if ($.isNode()) { if ($.isNode()) {

View File

@ -40,13 +40,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/api'; const JD_API_HOST = 'https://api.m.jd.com/api';

View File

@ -43,13 +43,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = `https://api.m.jd.com/client.action`; const JD_API_HOST = `https://api.m.jd.com/client.action`;

View File

@ -28,13 +28,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
let message = '', subTitle = ''; let message = '', subTitle = '';

View File

@ -51,13 +51,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
$.newShareCodes = []; $.newShareCodes = [];
const JD_API_HOST = 'https://lkyl.dianpusoft.cn/api'; const JD_API_HOST = 'https://lkyl.dianpusoft.cn/api';

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
let jdNotify = true;//是否开启静默运行。默认true开启 let jdNotify = true;//是否开启静默运行。默认true开启
let message = '', subTitle = ''; let message = '', subTitle = '';

View File

@ -41,13 +41,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://api.m.jd.com/api'; const JD_API_HOST = 'https://api.m.jd.com/api';
!(async () => { !(async () => {

View File

@ -31,13 +31,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const jdNotify = $.getdata('jdUnsubscribeNotify');//是否关闭通知false打开通知推送true关闭通知推送 const jdNotify = $.getdata('jdUnsubscribeNotify');//是否关闭通知false打开通知推送true关闭通知推送
let goodPageSize = $.getdata('jdUnsubscribePageSize') || 20;// 运行一次取消多少个已关注的商品。数字0表示不取关任何商品 let goodPageSize = $.getdata('jdUnsubscribePageSize') || 20;// 运行一次取消多少个已关注的商品。数字0表示不取关任何商品

View File

@ -36,13 +36,7 @@ if ($.isNode()) {
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
}; };
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
!(async () => { !(async () => {

View File

@ -31,13 +31,7 @@ if ($.isNode()) {
}) })
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {}; if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else { } else {
let cookiesData = $.getdata('CookiesJD') || "[]"; cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
} }
const JD_API_HOST = 'https://m.jingxi.com/'; const JD_API_HOST = 'https://m.jingxi.com/';
!(async () => { !(async () => {