Ver código fonte

新增自动流转到会话池功能

dxc 2 anos atrás
pai
commit
76e16cfadc
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      internal/logic/callback/callbackmsglogic.go

+ 2 - 2
internal/logic/callback/callbackmsglogic.go

@@ -132,11 +132,11 @@ func KfMsgOrEventHandle(svcCtx *svc.ServiceContext, ct types.EventContent) {
 			}
 			//消息额外处理
 			if cbMsg.Msgtype == types.MsgTypeText {
-				msgTypeTextHandle(svcCtx, cbMsg)
+				go msgTypeTextHandle(svcCtx, cbMsg)
 			}
 			//事件消息额外处理
 			if cbMsg.Msgtype == types.MsgTypeEvent {
-				msgTypeEventHandle(svcCtx, cbMsg)
+				go msgTypeEventHandle(svcCtx, cbMsg)
 			}
 		}
 		go updateCustomerList(svcCtx, userIds)