a
This commit is contained in:
@@ -22,10 +22,11 @@ const (
|
|||||||
|
|
||||||
printErrWithoutPaper = "05"
|
printErrWithoutPaper = "05"
|
||||||
|
|
||||||
printMsgSuccess = 1 //打印成功
|
printMsgAlreadySend = 2 //已经发出打印消息
|
||||||
printMsgWait = 0 //待打印
|
printMsgSuccess = 1 //打印成功
|
||||||
printMsgFail = -1 //打印失败(打印机报出)
|
printMsgWait = 0 //待打印
|
||||||
printMsgErr = -2 //京西报出
|
printMsgFail = -1 //打印失败(打印机报出)
|
||||||
|
printMsgErr = -2 //京西报出
|
||||||
|
|
||||||
heartErrWithoutPaper = "04" //心跳错,缺纸
|
heartErrWithoutPaper = "04" //心跳错,缺纸
|
||||||
heartErrHot = "08" //过热
|
heartErrHot = "08" //过热
|
||||||
@@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user