This commit is contained in:
邹宗楠
2022-12-16 20:30:45 +08:00
parent 8193186dcd
commit 2deef73518

View File

@@ -251,12 +251,7 @@ func (t *TcpClient) doPrint(key string) (err error) {
close(t.TimeoutMap[key])
} else {
if c != nil {
encryption := ""
for _, v := range data {
encryption += fmt.Sprintf("%d", v)
}
printMsg.ContentEncryption = encryption
printMsg.ContentEncryption = string(data)
dao.UpdateEntity(db, printMsg, "ContentEncryption")
if _, err = c.Write(data); err != nil {
globals.SugarLogger.Debugf("handleTcpMessages err [%v]", err)