From e0c1a93d66fb3f5481f19ccc16df5ac9d4073ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 28 Feb 2024 10:10:06 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/api_print.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/jxstore/cms/api_print.go b/business/jxstore/cms/api_print.go index 8b7aeecc9..a4c3b8a8e 100644 --- a/business/jxstore/cms/api_print.go +++ b/business/jxstore/cms/api_print.go @@ -383,6 +383,8 @@ func DoPrintMsg(appID int, msgID, printNo, content string, orderNo string) (err t, ok := event.PrintObject[printNo] if ok { + t.Lock() + defer t.Unlock() t.MsgMap[printNo] <- printMsg printMsg.Status = event.PrintMsgAlreadyLoad }