This commit is contained in:
邹宗楠
2024-07-23 18:00:38 +08:00
parent 53abbb82d6
commit 4ae054de73

View File

@@ -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
}