feat: 新增设置not_check_article(#25)

This commit is contained in:
jkluio78 2021-09-14 15:23:49 +08:00 committed by shanmiteko
parent c0bc4878e3
commit 8bf47698ad
3 changed files with 11 additions and 5 deletions

View File

@ -317,7 +317,7 @@ class Searcher {
if (isRelayed) {
_weight += 1;
}
if (_weight >= weight) {
if (_weight >= weight && !config.not_check_article) {
log.warn('获取动态', `1/2动态曾经转过,该专栏或已查看,故中止`)
_dyinfos = []
break
@ -368,4 +368,4 @@ class Searcher {
}
module.exports = { Searcher };
module.exports = { Searcher };

View File

@ -73,6 +73,12 @@ module.exports = {
* - 获取专栏数量
*/
article_scan_page: 3,
/**
* - 不检查专栏是否看过若选择检查可以提高检测效率
* - 默认false(检查)
*/
not_check_article: false,
/**
* - 开奖时间距离现在的最大天数
@ -249,4 +255,4 @@ module.exports = {
config_1: {},
config_2: {},
config_3: {}
}
}

View File

@ -1,6 +1,6 @@
{
"name": "lottery-auto-script",
"version": "2.1.5",
"version": "2.1.6",
"description": "自动参与B站动态抽奖",
"main": "main.js",
"scripts": {
@ -52,4 +52,4 @@
"chalk": "^4.1.1",
"nodemailer": "^6.5.0"
}
}
}