feat: 添加客服账号管理及WebSocket功能
This commit is contained in:
@@ -128,11 +128,11 @@ func (s *accountWebsocketService) handleConnection(ctx context.Context, key stri
|
|||||||
glog.Infof(ctx, "收到 WebSocket 消息 - %s: %s", key, content)
|
glog.Infof(ctx, "收到 WebSocket 消息 - %s: %s", key, content)
|
||||||
|
|
||||||
// 解析 userId
|
// 解析 userId
|
||||||
connInfo := s.connections.Get(key)
|
//connInfo := s.connections.Get(key)
|
||||||
if connInfo == nil {
|
//if connInfo == nil {
|
||||||
break
|
// break
|
||||||
}
|
//}
|
||||||
wsConn := connInfo.(*accountWsConnection)
|
//wsConn := connInfo.(*accountWsConnection)
|
||||||
|
|
||||||
// 先检查对话轮数,>5 则只发卡片,跳过话术
|
// 先检查对话轮数,>5 则只发卡片,跳过话术
|
||||||
//checkCardBeforeProcess 已推送卡片消息,无需ack
|
//checkCardBeforeProcess 已推送卡片消息,无需ack
|
||||||
|
|||||||
Reference in New Issue
Block a user