From 5739baf45e0da60d9804de1721334c50d616f35d Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Fri, 17 Sep 2021 10:55:39 +0800 Subject: [PATCH] update --- core/push.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/push.go b/core/push.go index bf59a98..cfd348e 100644 --- a/core/push.go +++ b/core/push.go @@ -21,5 +21,9 @@ func (ct *Chat) Push(content interface{}) { if push, ok := GroupPushs[ct.Class]; ok { push(ct.ID, ct.UserID, content.(string)) } + case error: + if push, ok := GroupPushs[ct.Class]; ok { + push(ct.ID, ct.UserID, content.(error).Error()) + } } }