From b45242dfeb07800f5867d50618de6a250770fe50 Mon Sep 17 00:00:00 2001 From: ayflying Date: Wed, 7 May 2025 12:17:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8D=E5=AD=97=E9=A2=84?= =?UTF-8?q?=E9=98=B2=E6=AD=A7=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/websocket/socket_new.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/websocket/socket_new.go b/pkg/websocket/socket_new.go index 70dab79..ba8b377 100644 --- a/pkg/websocket/socket_new.go +++ b/pkg/websocket/socket_new.go @@ -308,8 +308,8 @@ func (s *SocketV1) LeaveGroup(conn *WebsocketData, group string) { } //群组广播 -func (s *SocketV1) SendGroup(cmd int32, group string, req proto.Message) { - cacheKey := "websocket:group:" + group +func (s *SocketV1) SendGroup(cmd int32, roomId string, req proto.Message) { + cacheKey := "websocket:group:" + roomId get, _ := cache.Get(gctx.New(), cacheKey) var list = make(map[int64]string) if !get.IsNil() {