diff --git a/lib/core/monitor.js b/lib/core/monitor.js index 94c8c7c..61551f3 100644 --- a/lib/core/monitor.js +++ b/lib/core/monitor.js @@ -316,8 +316,8 @@ class Monitor extends Searcher { const [m_uid, ori_uid] = uids, - mIsFollowed = m_uid && (new RegExp(m_uid)).test(attentionList), - oriIsFollowed = ori_uid && (new RegExp(ori_uid)).test(attentionList), + mIsFollowed = !m_uid || (new RegExp(m_uid)).test(attentionList), + oriIsFollowed = !ori_uid || (new RegExp(ori_uid)).test(attentionList), /**判断是转发源动态还是现动态 实际发奖人*/ [real_uid, realIsFollowed] = lottery_info_type === 'uid' ? [ori_uid, oriIsFollowed] @@ -346,7 +346,9 @@ class Monitor extends Searcher { } /**若勾选只转已关注 */ - if (only_followed && !mIsFollowed && !oriIsFollowed) { + if (only_followed + && (!mIsFollowed || !oriIsFollowed) + ) { log.info("筛选动态", `只转已关注(https://t.bilibili.com/${dyid})`) return false } @@ -408,7 +410,7 @@ class Monitor extends Searcher { } /* 是否是转发的动态 */ - if (isRelayDynamic && real_uid) { + if (isRelayDynamic) { /* 转发内容长度+'//'+'@'+用户名+':'+源内容 */ const addlength = RandomStr.length + 2 + uname.length + 1 + 1; onelotteryinfo.relay_chat = RandomStr + `//@${uname}:` + des;