This commit is contained in:
邹宗楠
2023-05-31 19:47:31 +08:00
parent ff7ae26ce5
commit 5f3f974d3e

View File

@@ -134,7 +134,7 @@ func handleConn(c net.Conn, t *TcpClient) error {
t.HandleCheckTcpHeart(printNo)
// todo 证明打印机已经被激活,将激活打印机存入数据库,保证用户不能无限制绑定打印机
if err := dao.NotExistsCreate(printNo); err != nil {
globals.SugarLogger.Debugf("监听打印机心跳,不存在则创建 :[%v]", err)
globals.SugarLogger.Debugf("监听打印机心跳,不存在则创建 :[%v],printNo[%s]", err, printNo)
}
} else {
//在加到连接池中已经更新了时间所以放在else里