From 3fa1bfcb2ad920dafa27daa0f9c741c6450cafb2 Mon Sep 17 00:00:00 2001 From: jjxu <428192774@qq.com> Date: Tue, 17 Jun 2025 11:28:00 +0800 Subject: [PATCH] Update chat.go --- pkg/service/asChat/logic/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/service/asChat/logic/chat.go b/pkg/service/asChat/logic/chat.go index 2970e32..c8472bd 100644 --- a/pkg/service/asChat/logic/chat.go +++ b/pkg/service/asChat/logic/chat.go @@ -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 {