This commit is contained in:
cdle
2021-09-17 10:55:39 +08:00
parent f0962b89e1
commit 5739baf45e
+4
View File
@@ -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())
}
}
}