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 {