From 9d19b162cc6b7a28c0f4b5a54724b54d9645fe3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 12 May 2026 17:54:40 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/api_print.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()