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