1
This commit is contained in:
@@ -386,11 +386,11 @@ func DoPrintMsg(appID int, msgID, printNo, content string, orderNo string) (err
|
||||
Status: event.PrintMsgWait,
|
||||
}
|
||||
|
||||
t, ok := event.TcpClientList[printNo]
|
||||
t, ok := event.TcpClientList.Load(printNo)
|
||||
if ok {
|
||||
t.Lock()
|
||||
defer t.Unlock()
|
||||
t.MsgMap[printNo] <- printMsg
|
||||
t.(*event.TcpClient).Lock()
|
||||
defer t.(*event.TcpClient).Unlock()
|
||||
t.(*event.TcpClient).MsgMap[printNo] <- printMsg
|
||||
printMsg.Status = event.PrintMsgAlreadyLoad
|
||||
} /*else {
|
||||
t = event.NewTcpClient()
|
||||
|
||||
Reference in New Issue
Block a user