diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 580f769ad..d772ef63d 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -88,8 +88,9 @@ func handleConn(c net.Conn, t *TcpClient) error { if err == io.EOF { fmt.Println("connection close") } else { - fmt.Println("ReadString err", err) + fmt.Println("ReadString err:", err) } + globals.SugarLogger.Debugf("打印机连接错误:%v", err) return err } @@ -129,7 +130,7 @@ func handleConn(c net.Conn, t *TcpClient) error { //t.printFail() } changePrinterStatus(printNo, status) - // 暂时关闭心跳检测 + // todo 暂时关闭心跳检测 //t.HandleCheckTcpHeart(printNo) // todo 证明打印机已经被激活,将激活打印机存入数据库,保证用户不能无限制绑定打印机 if err := dao.NotExistsCreate(printNo); err != nil {