This commit is contained in:
邹宗楠
2022-08-04 14:51:36 +08:00
parent f328d74b38
commit d294481d5a

View File

@@ -223,7 +223,10 @@ func (t *TcpClient) doPrint(key string) (err error) {
if c = t.getPrintConn(printMsg.PrintNo); c != nil {
data, err = buildMsg(printMsg)
printMsg.ContentEncryption = string(data)
dao.UpdateEntity(db, printMsg, "ContentEncryption")
globals.SugarLogger.Debug("================print_msg:", string(data))
if _, err := dao.UpdateEntity(db, printMsg, "ContentEncryption"); err != nil {
globals.SugarLogger.Debug("================print_msg:", err)
}
}
case printerStatusOffline:
err = fmt.Errorf("打印机离线!")