From 203affee16fecdeffea59ea3999203849c0037ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 16 Dec 2022 15:43:40 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 3001f47cb..e6d1d6332 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -58,7 +58,7 @@ func (t *TcpClient) handleConn(c net.Conn) { //证明是心跳 globals.SugarLogger.Debugf("======data %s", data) if strings.Contains(data, heartText) || strings.Contains(data, heartTextNew) { - globals.SugarLogger.Debugf("======心跳 %s", data) + globals.SugarLogger.Debugf("======heartText %s", data) printNoData, _ := hex.DecodeString(data[len(heartText) : len(data)-8]) printNo = string(printNoData) globals.SugarLogger.Debugf("======printNo %s", printNo) @@ -261,8 +261,10 @@ func (t *TcpClient) doPrint(key string) (err error) { //t.delConn(printMsg.PrintNo) close(t.TimeoutMap[key]) } else { + globals.SugarLogger.Debugf("=====wait callback1") //等待回调 dataStr := <-t.CallBackMap[printMsg.PrintNo] + globals.SugarLogger.Debugf("=====wait callback2 %s", dataStr) if dataStr != "" { a, b := getCallbackMsgInfo(dataStr) t.changePrintMsg(dataStr, a, b)