diff --git a/business/jxstore/cms/api_print.go b/business/jxstore/cms/api_print.go index d0a61f6fb..a3ece0c3e 100644 --- a/business/jxstore/cms/api_print.go +++ b/business/jxstore/cms/api_print.go @@ -386,11 +386,11 @@ func DoPrintMsg(appID int, msgID, printNo, content string, orderNo string) (err Status: event.PrintMsgWait, } - t, ok := event.TcpClientList.Load(printNo) + t, ok := event.PrintObject.GetPrintObj(printNo) if ok { - t.(*event.TcpClient).Lock() - defer t.(*event.TcpClient).Unlock() - t.(*event.TcpClient).MsgMap[printNo] <- printMsg + t.Lock() + defer t.Unlock() + t.MsgMap[printNo] <- printMsg printMsg.Status = event.PrintMsgAlreadyLoad } /*else { t = event.NewTcpClient()