mirror of
https://github.com/6dylan6/jdpro.git
synced 2025-12-16 23:09:52 +08:00
1
This commit is contained in:
32
jdCookie.js
32
jdCookie.js
@@ -42,7 +42,7 @@ if (process.env.BANPIN) {
|
||||
//if (process.mainModule.filename.includes(i.split('^')[0])) {
|
||||
if (i.split('@')[0].split('|').filter(x => process.argv[1].includes(x)).length != 0) {
|
||||
let pinarr = i.split('@')[1].split(',');
|
||||
console.log(`已配置该任务不执行pin: ${JSON.stringify(pinarr)}`);
|
||||
console.log(`\n❗已配置该任务不执行pin: ${JSON.stringify(pinarr)}`);
|
||||
for (let j of pinarr) {
|
||||
j = decodeURIComponent(j);
|
||||
CookieJDs = CookieJDs.filter(x => !x.includes(encodeURIComponent(j)));
|
||||
@@ -53,7 +53,7 @@ if (process.env.BANPIN) {
|
||||
|
||||
} else {
|
||||
let pinarr = banpin.split(',');
|
||||
console.log(`已配置全局不执行pin: ${JSON.stringify(pinarr)}`);
|
||||
console.log(`\n❗已配置全部任务不执行pin: ${JSON.stringify(pinarr)}`);
|
||||
for (let i of pinarr) {
|
||||
//j = decodeURIComponent(j);
|
||||
CookieJDs = CookieJDs.filter(x => !x.includes(encodeURIComponent(i)));
|
||||
@@ -61,6 +61,34 @@ if (process.env.BANPIN) {
|
||||
}
|
||||
} catch { }
|
||||
}
|
||||
if (process.env.ALLOWPIN) {
|
||||
try {
|
||||
let pin = process.env.ALLOWPIN;
|
||||
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) {
|
||||
let pinarr = i.split('@')[1].split(',');
|
||||
console.log(`\n❗已配置该任务只执行pin: ${JSON.stringify(pinarr)}`);
|
||||
for (let j of pinarr) {
|
||||
j = decodeURIComponent(j);
|
||||
CookieJDs = CookieJDs.filter(x => x.includes(encodeURIComponent(j)));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
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)));
|
||||
}
|
||||
}
|
||||
} catch { }
|
||||
}
|
||||
console.log(`\n====================共${CookieJDs.length}个京东账号Cookie=================`);
|
||||
console.log(`===========脚本执行时间:${formatdate(new Date(new Date().getTime() + new Date().getTimezoneOffset() * 60 * 1000 + 8 * 60 * 60 * 1000))}============`);
|
||||
console.log('>>>>>>>>>>>>6dylan6提醒您:有问题先更新不行在反馈>>>>>>>>>>>>>\n');
|
||||
|
||||
Reference in New Issue
Block a user