mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-05-08 15:23:10 +08:00
1
This commit is contained in:
@@ -114,14 +114,21 @@ PERMIT_JS='farm&plant&opencard' 需要走代理池的js关键词,多个&分割
|
||||
|
||||
**代理池是一个固定不变的地址,通过这个地址服务,服务会自动转发请求到可用代理,本质上代理池就是一个代理服务器**
|
||||
|
||||
禁止指定的pin执行任务:
|
||||
BANPIN 禁止某pin执行任务
|
||||
|
||||
多个任务同pin:BANPIN='任务1|任务2@pin1,pin2'
|
||||
ALLOWPIN 只执行某pin执行任务
|
||||
|
||||
多个任务不同pin:BANPIN='任务1@pin,pin2&任务2@pin2,pin3'
|
||||
多个任务同pin:任务1|任务2@pin1,pin2
|
||||
|
||||
不指定任务只写pin 全部任务都不执行该pin:BANPIN='pin1,pin2'
|
||||
多个任务不同pin:任务1@pin,pin2&任务2@pin2,pin3
|
||||
|
||||
不指定任务只写pin:全部任务
|
||||
|
||||
示例
|
||||
|
||||
export BANPIN='draw@pin1,pin2'
|
||||
|
||||
export ALLOWPIN='draw@pin1,pin2'
|
||||
|
||||
## 支持的通知方式
|
||||
|
||||
|
||||
+30
-2
@@ -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');
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user