mirror of
https://github.com/shanmiteko/LotteryAutoScript.git
synced 2026-07-22 21:13:47 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fabe9f7d6e | ||
|
|
1962d97bc1 |
@@ -1,5 +1,13 @@
|
||||
<!-- markdownlint-disable MD036 MD024-->
|
||||
# CHANGELOG
|
||||
## 主要变化(2.3.4)
|
||||
* 1962d97 fix: 过滤专栏时间失效(#67)
|
||||
## 较上一版本变化
|
||||
只变更可执行文件
|
||||
|
||||
_如果之前版本小于上一版本,请查看[CHANGELOG](CHANGELOG.md)变更说明_
|
||||
|
||||
**Full Changelog**: https://github.com/shanmiteko/LotteryAutoScript/compare/v2.3.2...v2.3.4
|
||||
|
||||
## 主要变化(2.3.3)
|
||||
* 11625b3 feat: 检索专栏时能够根据发布时间进行过滤(#65)
|
||||
|
||||
@@ -337,7 +337,8 @@ class Searcher {
|
||||
let dyinfos = [];
|
||||
/**遍历专栏s */
|
||||
for (const { id, pub_time } of cvs) {
|
||||
if (pub_time / 86400 > article_create_time) {
|
||||
let now_time = Math.floor(Date.now() / 1000);
|
||||
if ((now_time - pub_time) / 86400 > article_create_time) {
|
||||
log.warn("获取动态", `该专栏(${id})创建时间大于设定天数(${article_create_time}天)`)
|
||||
continue
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "lottery-auto-script",
|
||||
"version": "2.3.3",
|
||||
"version": "2.3.4",
|
||||
"description": "自动参与B站动态抽奖",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
@@ -52,4 +52,4 @@
|
||||
"chalk": "^4.1.2",
|
||||
"nodemailer": "^6.7.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user