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
13
jdCookie.js
13
jdCookie.js
@ -55,7 +55,7 @@ if (process.env.BANPIN) {
|
||||
let pinarr = banpin.split(',');
|
||||
console.log(`\n❗已配置全部任务不执行pin: ${JSON.stringify(pinarr)}`);
|
||||
for (let i of pinarr) {
|
||||
//j = decodeURIComponent(j);
|
||||
i = decodeURIComponent(i);
|
||||
CookieJDs = CookieJDs.filter(x => !x.includes(encodeURIComponent(i)));
|
||||
}
|
||||
}
|
||||
@ -63,9 +63,11 @@ if (process.env.BANPIN) {
|
||||
}
|
||||
if (process.env.ALLOWPIN) {
|
||||
try {
|
||||
let pin = process.env.ALLOWPIN;
|
||||
const pin = process.env.ALLOWPIN;
|
||||
const runck = [];
|
||||
if (pin.includes('@')) {
|
||||
const arr = pin.split('&');
|
||||
|
||||
for (let i of arr) {
|
||||
//if (process.mainModule.filename.includes(i.split('^')[0])) {
|
||||
if (i.split('@')[0].split('|').filter(x => process.argv[1].includes(x)).length != 0) {
|
||||
@ -73,7 +75,7 @@ if (process.env.ALLOWPIN) {
|
||||
console.log(`\n❗已配置该任务只执行pin: ${JSON.stringify(pinarr)}`);
|
||||
for (let j of pinarr) {
|
||||
j = decodeURIComponent(j);
|
||||
CookieJDs = CookieJDs.filter(x => x.includes(encodeURIComponent(j)));
|
||||
runck.push(...CookieJDs.filter(x => x.includes(encodeURIComponent(j))));
|
||||
}
|
||||
|
||||
}
|
||||
@ -83,10 +85,11 @@ if (process.env.ALLOWPIN) {
|
||||
let pinarr = pin.split(',');
|
||||
console.log(`\n❗已配置全部任务只执行pin: ${JSON.stringify(pinarr)}`);
|
||||
for (let i of pinarr) {
|
||||
//j = decodeURIComponent(j);
|
||||
CookieJDs = CookieJDs.filter(x => x.includes(encodeURIComponent(i)));
|
||||
i = decodeURIComponent(i);
|
||||
runck.push(...CookieJDs.filter(x => x.includes(encodeURIComponent(i))));
|
||||
}
|
||||
}
|
||||
CookieJDs = runck
|
||||
} catch { }
|
||||
}
|
||||
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