1
This commit is contained in:
@@ -231,10 +231,6 @@ func doPrint(t *TcpClient, key string) (err error) {
|
||||
if t.TimeoutMap[key] == true {
|
||||
select {
|
||||
case printMsg, ok := <-t.MsgMap[key]:
|
||||
if key == "120220915001467" {
|
||||
globals.SugarLogger.Debugf("=msgMap=%s", utils.Format4Output(printMsg, false))
|
||||
globals.SugarLogger.Debugf("=msgMapok=%s", utils.Format4Output(ok, false))
|
||||
}
|
||||
if !ok {
|
||||
globals.SugarLogger.Debugf("doPrint err !ok ...")
|
||||
return
|
||||
@@ -309,7 +305,7 @@ func doPrint(t *TcpClient, key string) (err error) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
globals.SugarLogger.Debugf("查询打印机扣费记录错误 %s %d %s", err, a, b)
|
||||
globals.SugarLogger.Debugf("查询打印机扣费记录错误 %s %d %s", err.Error(), a, b)
|
||||
}
|
||||
// 回调重置打印机状态时间
|
||||
t.Clients[b].StatusTime = time.Now()
|
||||
|
||||
Reference in New Issue
Block a user