From 1186935d7d980c08a4b101453b0ae641b038cf8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 22 Jul 2024 15:00:03 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 01e5577b6..5032377f7 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -99,23 +99,7 @@ func handleConn(c net.Conn) error { if !ok { t = NewTcpClient() } - // buildAllMap(t, printNo) - // PrintObject[printNo] = t - // PrintAddrAndIp[printRemoteAddr] = printNo - // PrintIpAndAddr[printNo] = printRemoteAddr - //} - //if strings.Contains(string(buffer[0:n]), "print_no_clear") { // 清理缓存 - // param := struct { - // PrintNoClear json.Number `json:"print_no_clear"` - // }{} - // if err := json.Unmarshal(buffer[0:n], ¶m); err != nil { - // c.Write([]byte(err.Error())) - // return err - // } - // t.buildMsgMap(param.PrintNoClear.String()) - // c.Write([]byte("ok")) - // return err - //} + if heartbeat { // 证明是心跳 Heartbeat(c, t, data, printNo, printRemoteAddr)