mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-03-22 11:18:59 +00:00
1
This commit is contained in:
parent
d35d5278a5
commit
3a3f729d7b
15
jdCookie.js
15
jdCookie.js
@ -55,7 +55,7 @@ if (process.env.BANPIN) {
|
|||||||
let pinarr = banpin.split(',');
|
let pinarr = banpin.split(',');
|
||||||
console.log(`\n❗已配置全部任务不执行pin: ${JSON.stringify(pinarr)}`);
|
console.log(`\n❗已配置全部任务不执行pin: ${JSON.stringify(pinarr)}`);
|
||||||
for (let i of pinarr) {
|
for (let i of pinarr) {
|
||||||
//j = decodeURIComponent(j);
|
i = decodeURIComponent(i);
|
||||||
CookieJDs = CookieJDs.filter(x => !x.includes(encodeURIComponent(i)));
|
CookieJDs = CookieJDs.filter(x => !x.includes(encodeURIComponent(i)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -63,9 +63,11 @@ if (process.env.BANPIN) {
|
|||||||
}
|
}
|
||||||
if (process.env.ALLOWPIN) {
|
if (process.env.ALLOWPIN) {
|
||||||
try {
|
try {
|
||||||
let pin = process.env.ALLOWPIN;
|
const pin = process.env.ALLOWPIN;
|
||||||
|
const runck = [];
|
||||||
if (pin.includes('@')) {
|
if (pin.includes('@')) {
|
||||||
const arr = pin.split('&');
|
const arr = pin.split('&');
|
||||||
|
|
||||||
for (let i of arr) {
|
for (let i of arr) {
|
||||||
//if (process.mainModule.filename.includes(i.split('^')[0])) {
|
//if (process.mainModule.filename.includes(i.split('^')[0])) {
|
||||||
if (i.split('@')[0].split('|').filter(x => process.argv[1].includes(x)).length != 0) {
|
if (i.split('@')[0].split('|').filter(x => process.argv[1].includes(x)).length != 0) {
|
||||||
@ -73,20 +75,21 @@ if (process.env.ALLOWPIN) {
|
|||||||
console.log(`\n❗已配置该任务只执行pin: ${JSON.stringify(pinarr)}`);
|
console.log(`\n❗已配置该任务只执行pin: ${JSON.stringify(pinarr)}`);
|
||||||
for (let j of pinarr) {
|
for (let j of pinarr) {
|
||||||
j = decodeURIComponent(j);
|
j = decodeURIComponent(j);
|
||||||
CookieJDs = CookieJDs.filter(x => x.includes(encodeURIComponent(j)));
|
runck.push(...CookieJDs.filter(x => x.includes(encodeURIComponent(j))));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
let pinarr = pin.split(',');
|
let pinarr = pin.split(',');
|
||||||
console.log(`\n❗已配置全部任务只执行pin: ${JSON.stringify(pinarr)}`);
|
console.log(`\n❗已配置全部任务只执行pin: ${JSON.stringify(pinarr)}`);
|
||||||
for (let i of pinarr) {
|
for (let i of pinarr) {
|
||||||
//j = decodeURIComponent(j);
|
i = decodeURIComponent(i);
|
||||||
CookieJDs = CookieJDs.filter(x => x.includes(encodeURIComponent(i)));
|
runck.push(...CookieJDs.filter(x => x.includes(encodeURIComponent(i))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
CookieJDs = runck
|
||||||
} catch { }
|
} catch { }
|
||||||
}
|
}
|
||||||
console.log(`\n====================共${CookieJDs.length}个京东账号Cookie=================`);
|
console.log(`\n====================共${CookieJDs.length}个京东账号Cookie=================`);
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user