From 3180fd065e1e9bac4c0d4a5bb896c015398ca33a Mon Sep 17 00:00:00 2001 From: qhd <1766646056@qq.com> Date: Fri, 3 Apr 2026 17:54:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=AE=A2=E6=9C=8D?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=AE=A1=E7=90=86=E5=8F=8AWebSocket=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/account_websocket_service.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/service/account_websocket_service.go b/service/account_websocket_service.go index be23003..50259e6 100644 --- a/service/account_websocket_service.go +++ b/service/account_websocket_service.go @@ -128,11 +128,11 @@ func (s *accountWebsocketService) handleConnection(ctx context.Context, key stri glog.Infof(ctx, "收到 WebSocket 消息 - %s: %s", key, content) // 解析 userId - connInfo := s.connections.Get(key) - if connInfo == nil { - break - } - wsConn := connInfo.(*accountWsConnection) + //connInfo := s.connections.Get(key) + //if connInfo == nil { + // break + //} + //wsConn := connInfo.(*accountWsConnection) // 先检查对话轮数,>5 则只发卡片,跳过话术 //checkCardBeforeProcess 已推送卡片消息,无需ack