mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-04-18 18:28:07 +08:00
Compare commits
4 Commits
2fc530aaea
...
08f3a368b6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08f3a368b6 | ||
|
|
6614f2c87b | ||
|
|
b402c6cacc | ||
|
|
5d0819cfea |
@@ -44,6 +44,7 @@ if (process.env.BANPIN) {
|
||||
let pinarr = i.split('@')[1].split(',');
|
||||
console.log(`已配置该任务不执行pin: ${JSON.stringify(pinarr)}`);
|
||||
for (let j of pinarr) {
|
||||
j = decodeURIComponent(j);
|
||||
CookieJDs = CookieJDs.filter(x => !x.includes(encodeURIComponent(j)));
|
||||
}
|
||||
|
||||
@@ -54,6 +55,7 @@ if (process.env.BANPIN) {
|
||||
let pinarr = banpin.split(',');
|
||||
console.log(`已配置全局不执行pin: ${JSON.stringify(pinarr)}`);
|
||||
for (let i of pinarr) {
|
||||
j = decodeURIComponent(j);
|
||||
CookieJDs = CookieJDs.filter(x => !x.includes(encodeURIComponent(i)));
|
||||
}
|
||||
}
|
||||
@@ -61,7 +63,7 @@ if (process.env.BANPIN) {
|
||||
}
|
||||
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('>>>>>>>>>>>>6Dy提醒您:有问题先更新不行在反馈>>>>>>>>>>>>>\n');
|
||||
console.log('>>>>>>>>>>>>6dylan6提醒您:有问题先更新不行在反馈>>>>>>>>>>>>>\n');
|
||||
|
||||
for (let i = 0; i < CookieJDs.length; i++) {
|
||||
if (!CookieJDs[i].match(/pt_pin=(.+?);/) || !CookieJDs[i].match(/pt_key=(.+?);/)) console.log(`\n提示:京东cookie 【${CookieJDs[i]}】填写不规范,可能会影响部分脚本正常使用。正确格式为: pt_key=xxx;pt_pin=xxx;(分号;不可少)\n`);
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user