From 4ae054de731a1e69e332a56e51081b98fbb6399a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 23 Jul 2024 18:00:38 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index e2bb49256..1a78499b6 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -75,11 +75,8 @@ func handleConn(c net.Conn) error { delete(PrintIpAndAddr, printNo) delete(PrintObject, printNo) delete(PrintAddrAndIp, printRemoteAddr) - globals.SugarLogger.Debugf("==========11") + dao.ExecuteSQL(dao.GetDB(), `UPDATE print SET status = -1,is_online = -1 WHERE print_no = ? `, []interface{}{printNo}...) } - globals.SugarLogger.Debugf("======PrintIpAndAddr:= %s", utils.Format4Output(PrintIpAndAddr, false)) - globals.SugarLogger.Debugf("======PrintObject:= %s", utils.Format4Output(PrintObject, false)) - globals.SugarLogger.Debugf("======PrintAddrAndIp:= %s", utils.Format4Output(PrintAddrAndIp, false)) return err }