fix: 过滤专栏时间失效(#67)

This commit is contained in:
jkluio78 2021-11-09 18:44:41 +08:00 committed by shanmite
parent c43ab13790
commit 1962d97bc1

View File

@ -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
}