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