This commit is contained in:
邹宗楠
2025-02-08 14:12:35 +08:00
parent 3cb005011c
commit a6bee06006
2 changed files with 1 additions and 4 deletions

View File

@@ -368,7 +368,6 @@ func getCallbackMsgInfo(data string) (orderNo int64, printNo string) {
}
func changePrinterStatus(printNo string, status int) {
globals.SugarLogger.Debugf("---------changePrinterStatus := %s --- %d", printNo, status)
var (
db = dao.GetDB()
)
@@ -658,7 +657,7 @@ func Heartbeat(c net.Conn, t *TcpClient, data string, printNo string, printRemot
if status == printerStatusOnline {
//t.printFail()
}
changePrinterStatus(printNo, status)
//changePrinterStatus(printNo, status)
// todo 暂时关闭心跳检测
HandleCheckTcpHeart(t, printNo)
// todo 证明打印机已经被激活,将激活打印机存入数据库,保证用户不能无限制绑定打印机