1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user