Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lxk0301 committed Jan 4, 2021
1 parent bfde1ba commit 61f5836
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions jdCookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 61f5836

Please sign in to comment.