1
This commit is contained in:
@@ -101,6 +101,7 @@ func (t *TcpClient) handleConn(c net.Conn) {
|
|||||||
}
|
}
|
||||||
//状态不一致再更新状态(可能缺纸了,过热了等)
|
//状态不一致再更新状态(可能缺纸了,过热了等)
|
||||||
if t.getPrintStatus(printNo) != status {
|
if t.getPrintStatus(printNo) != status {
|
||||||
|
globals.SugarLogger.Debugf("==========getPrintStatus:%s", printNo)
|
||||||
t.setPrintStatus(printNo, status)
|
t.setPrintStatus(printNo, status)
|
||||||
changePrinterStatus(printNo, status)
|
changePrinterStatus(printNo, status)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -256,6 +256,7 @@ func (t *TcpClient) setPrintStatus(key string, status int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *TcpClient) setPrintStatusTime(key string) {
|
func (t *TcpClient) setPrintStatusTime(key string) {
|
||||||
|
globals.SugarLogger.Debugf("==========setPrintStatusTime:%s", key)
|
||||||
t.Lock()
|
t.Lock()
|
||||||
defer t.Unlock()
|
defer t.Unlock()
|
||||||
if t.Clients[key] != nil {
|
if t.Clients[key] != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user