This commit is contained in:
suyl
2021-08-10 10:27:55 +08:00
parent 65e4d2907f
commit e746693d93

View File

@@ -65,6 +65,7 @@ func (t *TcpClient) handleConn(c net.Conn) {
}
//看是心跳还是打印回调
data := hex.EncodeToString(buffer[:n])
globals.SugarLogger.Debugf("handleConn msg ....................: %v", data)
//证明是心跳
if strings.Contains(data, heartText) {
globals.SugarLogger.Debugf("handleConn heart: %v", data)