From a107e0a417ebb88eba9adb181abb515cb590a3d7 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Fri, 24 Sep 2021 07:30:45 +0800 Subject: [PATCH] update --- core/push.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/push.go b/core/push.go index d5b3ec9..44cdaad 100644 --- a/core/push.go +++ b/core/push.go @@ -32,7 +32,11 @@ func (ct *Chat) Push(content interface{}) { func NotifyMasters(content string) { for _, class := range []string{"tg", "qq"} { - for _, v := range regexp.MustCompile(`(\d+)`).FindAllStringSubmatch(Bucket(class).Get("masters"), -1) { + notify := Bucket(class).Get("notifiers") + if notify == "" { + notify = Bucket(class).Get("masters") + } + for _, v := range regexp.MustCompile(`(\d+)`).FindAllStringSubmatch(notify, -1) { if push, ok := Pushs[class]; ok { push(Int(v[1]), content) }