From e9513c2fb8ecc0663dd64da49f4b41beaa43bf6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=95=85?= <45375162+story-x@users.noreply.github.com> Date: Tue, 21 Mar 2023 02:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=B3=E6=B8=B8=E7=A4=BE=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E6=8E=A8=E9=80=81=E5=89=8D?= =?UTF-8?q?=EF=BC=8C=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E7=BE=A4=E5=85=B3=E7=B3=BB=20(#36)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/model/mysNews.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/genshin/model/mysNews.js b/plugins/genshin/model/mysNews.js index 0059f6e..a7a0dda 100644 --- a/plugins/genshin/model/mysNews.js +++ b/plugins/genshin/model/mysNews.js @@ -395,6 +395,12 @@ export default class MysNews extends base { let sended = await redis.get(`${this.key}${groupId}:${postId}`) if (sended) return + // 判断是否存在群关系 + if (!Bot.gl.get(Number(groupId))) { + logger.error(`[米游社${typeName}推送] 群${groupId}未关联`) + return + } + if (!this[postId]) { const param = await this.newsDetail(postId)