From c486abf0ed99788ddce6748cc613551a106167ab Mon Sep 17 00:00:00 2001 From: shanmite Date: Mon, 13 Dec 2021 14:31:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=91=E5=90=8D=E5=8D=95=E4=B8=8D?= =?UTF-8?q?=E8=B5=B7=E4=BD=9C=E7=94=A8(#92)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 类型判断错误 --- lib/core/monitor.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/core/monitor.js b/lib/core/monitor.js index 656771b..beeb9c8 100644 --- a/lib/core/monitor.js +++ b/lib/core/monitor.js @@ -342,7 +342,10 @@ class Monitor extends Searcher { { blacklist: remote_blacklist } = use_public_blacklist === false ? { blacklist: "" } : global_var.get("remoteconfig"), - /* 获取黑名单并去重合并 */ + /** + * 获取黑名单并去重合并 + * @type {string[]} + */ new_blacklist = remote_blacklist ? [ ...new Set([...blacklist.split(','), @@ -373,7 +376,7 @@ class Monitor extends Searcher { if ( new_blacklist.some(id => keys.some(key => { - if (key === id + '') { + if (key + '' === id) { log.info("筛选动态", `黑名单匹配(${id})(https://t.bilibili.com/${dyid})`) return true } else {