This commit is contained in:
suyl
2021-06-29 13:45:08 +08:00
parent 2ceabfc367
commit 482e48304c

View File

@@ -22,6 +22,7 @@ const (
printErrWithoutPaper = "05" printErrWithoutPaper = "05"
printMsgAlreadySend = 2 //已经发出打印消息
printMsgSuccess = 1 //打印成功 printMsgSuccess = 1 //打印成功
printMsgWait = 0 //待打印 printMsgWait = 0 //待打印
printMsgFail = -1 //打印失败(打印机报出) printMsgFail = -1 //打印失败(打印机报出)
@@ -184,6 +185,8 @@ func HandleTcpMessages() {
c.Close() c.Close()
} else { } else {
globals.SugarLogger.Debugf("handleTcpMessages success, data: %v", hex.EncodeToString(data)) globals.SugarLogger.Debugf("handleTcpMessages success, data: %v", hex.EncodeToString(data))
printMsg.Status = printMsgAlreadySend
dao.UpdateEntity(db, printMsg, "Status", "Comment")
} }
} }
} }