aa
This commit is contained in:
@@ -27,7 +27,7 @@ func ListenTcp() {
|
||||
go HandleTcpMessages()
|
||||
go t.HandleCheckTcpHeart()
|
||||
go t.doPrint2(printMsgChan)
|
||||
go t.doPrint(printMsgChanFail)
|
||||
//go t.doPrint(printMsgChanFail)
|
||||
for {
|
||||
c, err := l.Accept()
|
||||
if err != nil {
|
||||
@@ -95,7 +95,7 @@ func (t *TcpClient) handleConn(c net.Conn) {
|
||||
t.addConn(c, printNo, printStatus2JxStatus(data[len(data)-8:len(data)-6]))
|
||||
changePrinterStatus(printNo, status)
|
||||
if status == printerStatusOnline {
|
||||
printFail()
|
||||
//printFail()
|
||||
}
|
||||
} else {
|
||||
//改变打印机状态
|
||||
|
||||
Reference in New Issue
Block a user