From c24ac78b91cf2e407006f8a2a0213076f6c65484 Mon Sep 17 00:00:00 2001 From: ayflying Date: Wed, 23 Apr 2025 18:22:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=BF=E9=97=B4=E7=BC=96?= =?UTF-8?q?=E5=8F=B7=E4=B8=BAstring?= 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 b9f22b2..86b02ff 100644 --- a/pkg/websocket/socket_new.go +++ b/pkg/websocket/socket_new.go @@ -37,7 +37,7 @@ type WebsocketData struct { Uid int64 `json:"uid" dc:"用户编号"` Groups []string `json:"groups" dc:"群组"` Ctx context.Context `json:"ctx" dc:""` - RoomId int `json:"roomId" dc:"房间编号"` + RoomId string `json:"roomId" dc:"房间编号"` } func NewV1() *SocketV1 { @@ -100,7 +100,7 @@ func (s *SocketV1) OnConnect(ctx context.Context, ws *websocket.Conn) { Ws: ws, Ctx: ctx, Groups: make([]string, 0), - RoomId: -1, + RoomId: "", } m.Set(id, conn)