1
This commit is contained in:
@@ -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("打印机离线!")
|
||||
|
||||
Reference in New Issue
Block a user