This commit is contained in:
suyl
2021-10-19 18:19:58 +08:00
parent 175b81d0fd
commit aa2a2d4668
2 changed files with 11 additions and 3 deletions

View File

@@ -180,7 +180,9 @@ func (t *TcpClient) HandleTcpMessages(printNo string) {
printMsg.Status = printMsgAlreadyLoad
//先避免重复读再插到channel
if _, err := dao.UpdateEntity(db, printMsg, "Status"); err == nil {
t.addMsgChan(printMsg)
if err = t.addMsgChan(printMsg); err != nil {
globals.SugarLogger.Debugf("HandleTcpMessages addMsgChan Err: %v", err)
}
}
}
}