feat: 添加客服账号管理及WebSocket功能

This commit is contained in:
2026-04-03 17:54:28 +08:00
parent 9598aec184
commit 3180fd065e

View File

@@ -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