update
This commit is contained in:
@ -15,17 +15,12 @@ if (process.env.JD_COOKIE) {
|
||||
} else if (process.env.JD_COOKIE.indexOf('\n') > -1) {
|
||||
console.log(`您的cookie选择的是用换行隔开\n`)
|
||||
CookieJDs = process.env.JD_COOKIE.split('\n');
|
||||
} else if (process.env.JD_COOKIE.indexOf('\\n') > -1) {
|
||||
//环境变量兼容腾讯云和docker下\n会被转义成\\n
|
||||
console.log(`您的cookie选择的是用换行隔开\\n`)
|
||||
CookieJDs = process.env.JD_COOKIE.split('\\n');
|
||||
} else {
|
||||
CookieJDs = [process.env.JD_COOKIE];
|
||||
}
|
||||
CookieJDs = [...new Set(CookieJDs)]
|
||||
console.log(`\n====================共有${CookieJDs.length}个京东账号Cookie=========\n`);
|
||||
console.log(`==================脚本执行- 北京时间(UTC+8):${new Date(new Date().getTime() + new Date().getTimezoneOffset()*60*1000 + 8*60*60*1000).toLocaleString()}=====================\n`)
|
||||
// console.log(`\n==================脚本执行来自 github action=====================\n`)
|
||||
}
|
||||
for (let i = 0; i < CookieJDs.length; i++) {
|
||||
const index = (i + 1 === 1) ? '' : (i + 1);
|
||||
|
Reference in New Issue
Block a user