Update chat.go

This commit is contained in:
徐俊杰 2025-06-17 11:28:00 +08:00
parent 4643de4f6e
commit 3fa1bfcb2a

View File

@ -76,7 +76,7 @@ func NewMessage(ctx context.Context, cache *chatCache.ChatCache, sender *account
fmt.Println("NewMessage 6")
//发送websocket消息提醒通知
var notice = dto.MessageListType{}
notice.BuildMessage(resp.Data, sender.Role)
notice.BuildMessage(resp.Data)
fmt.Printf("ws消息提醒:%+v\n", notice)
_, err = consts.ChatRoom.SendSessionMessage(sender, request.SessionId, ws.NewChatMsgType, notice)
if err != nil {