diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 5f9e3183d..659086976 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -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("打印机离线!")