米游社公告定时任务推送前,判断是否存在群关系 (#36)
This commit is contained in:
parent
785c6f33a3
commit
e9513c2fb8
|
@ -395,6 +395,12 @@ export default class MysNews extends base {
|
||||||
let sended = await redis.get(`${this.key}${groupId}:${postId}`)
|
let sended = await redis.get(`${this.key}${groupId}:${postId}`)
|
||||||
if (sended) return
|
if (sended) return
|
||||||
|
|
||||||
|
// 判断是否存在群关系
|
||||||
|
if (!Bot.gl.get(Number(groupId))) {
|
||||||
|
logger.error(`[米游社${typeName}推送] 群${groupId}未关联`)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (!this[postId]) {
|
if (!this[postId]) {
|
||||||
const param = await this.newsDetail(postId)
|
const param = await this.newsDetail(postId)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue