Explorar o código

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

dxc %!s(int64=2) %!d(string=hai) anos
pai
achega
76e16cfadc
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)