消息类型提交

This commit is contained in:
lifeiyi
2020-03-31 10:31:59 +08:00
parent 21d763e77d
commit f410afbd58

View File

@@ -122,7 +122,7 @@ func (slf *Client) Run() {
}
data,err:=slf.tcpService.process.Unmarshal(bytes)
if err != nil {
slf.tcpService.GetEventReciver().NotifyEvent(&event.Event{Type:event.Sys_Event_Tcp_RecvPack,Data:&TcpPack{ClientId:slf.id,Data:bytes}})
slf.tcpService.GetEventReciver().NotifyEvent(&event.Event{Type:event.Sys_Event_Tcp_PackException,Data:&TcpPack{ClientId:slf.id,Data:bytes}})
//log.Debug("process.Unmarshal is error:%+v",err)
continue
}