update
This commit is contained in:
+7
-3
@@ -15,8 +15,12 @@ type Chat struct {
|
|||||||
UserID int
|
UserID int
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ct *Chat) Push(content string) {
|
func (ct *Chat) Push(content interface{}) {
|
||||||
if push, ok := GroupPushs[ct.Class]; ok {
|
switch content.(type) {
|
||||||
push(ct.ID, ct.UserID, content)
|
case string:
|
||||||
|
if push, ok := GroupPushs[ct.Class]; ok {
|
||||||
|
push(ct.ID, ct.UserID, content.(string))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user