This commit is contained in:
邹宗楠
2023-06-01 12:49:50 +08:00
parent 944166496e
commit 2be3fb329e

View File

@@ -299,6 +299,10 @@ func (t *TcpClient) doPrint(key string) (err error) {
case printerStatusOnline:
if c = t.getPrintConn(printMsg.PrintNo); c != nil {
data, err = buildMsg(printMsg)
globals.SugarLogger.Debugf("=================printMsg : %s", utils.Format4Output(printMsg, false))
globals.SugarLogger.Debugf("=================PrintNo : %s", printMsg.PrintNo)
globals.SugarLogger.Debugf("=================data : %s", string(data))
globals.SugarLogger.Debugf("=================err : %s", utils.Format4Output(err, false))
}
case printerStatusOffline:
err = fmt.Errorf("打印机离线!")