Update chat.go
This commit is contained in:
parent
4c602f780f
commit
e2cf0be0cb
@ -105,6 +105,7 @@ func NewMessage(ctx context.Context, cache *chatCache.ChatCache, sender *account
|
|||||||
notice.BuildMessage(resp.Data)
|
notice.BuildMessage(resp.Data)
|
||||||
fmt.Printf("ws消息提醒:%+v\n", notice)
|
fmt.Printf("ws消息提醒:%+v\n", notice)
|
||||||
_, err = consts.ChatRoom.SendSessionMessage(sender, request.SessionId, ws.NewChatMsgType, notice)
|
_, err = consts.ChatRoom.SendSessionMessage(sender, request.SessionId, ws.NewChatMsgType, notice)
|
||||||
|
fmt.Println("消息提醒结果:", err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Print("发送新消息通知失败", zap.Error(err), zap.Any("notice", notice))
|
log.Print("发送新消息通知失败", zap.Error(err), zap.Any("notice", notice))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user