mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-07-22 21:13:47 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28c2af93cf | ||
|
|
11aec87eed |
+1
-1
@@ -90,7 +90,7 @@ class Monitor extends Public {
|
||||
if (ts < 0) {
|
||||
return 51
|
||||
}
|
||||
if (ts > (Date.now() / 1000) + config.maxday * 864e5) {
|
||||
if (ts > (Date.now() / 1000) + config.maxday * 864e2) {
|
||||
log.info('过滤', '开奖时间晚于指定时间')
|
||||
MyStorage.updateDyid(Lottery.dyid)
|
||||
continue
|
||||
|
||||
@@ -110,18 +110,18 @@ async function main() {
|
||||
process.env.lottery_mode = process.argv[2]
|
||||
|
||||
const err_msg = await main();
|
||||
|
||||
if (err_msg) {
|
||||
log.error('错误', '\n' + err_msg + '\n');
|
||||
log.warn('结束运行', '5秒后自动退出');
|
||||
await delay(5 * 1000);
|
||||
} else {
|
||||
if (loop_wait > 0) {
|
||||
while (loop_wait) {
|
||||
log.info('程序休眠', `${loop_wait / 1000}秒后再次启动`)
|
||||
await delay(loop_wait);
|
||||
} else {
|
||||
log.info('结束运行', '未设置休眠时间')
|
||||
await delay(loop_wait),
|
||||
await main()
|
||||
}
|
||||
log.info('结束运行', '未设置休眠时间')
|
||||
}
|
||||
|
||||
process.exit(0);
|
||||
})()
|
||||
+1
-1
@@ -44,4 +44,4 @@
|
||||
"nodemailer": "^6.5.0",
|
||||
"unzipper": "^0.10.11"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user