From 944166496e47057aefc719ff86ba8eb7299e5181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 1 Jun 2023 10:11:04 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 {