From 1439e701ac06b343352295c3f059713773d0136c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 15 Jan 2024 10:58:56 +0800 Subject: [PATCH] 1 --- business/jxstore/event/event_tcp_utils.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/jxstore/event/event_tcp_utils.go b/business/jxstore/event/event_tcp_utils.go index 3a61b177f..40da5fd10 100644 --- a/business/jxstore/event/event_tcp_utils.go +++ b/business/jxstore/event/event_tcp_utils.go @@ -407,8 +407,10 @@ func buildMsg(printMsg *model.PrintMsg) (data []byte, err error) { globals.SugarLogger.Debug("order_msg Order_no 转换异常") } orderNoHexH, orderNoHexL = int2h8l8(no) - // 将数据与模板组装 + if strings.Contains(content, "•") { + content = strings.ReplaceAll(content, "•", "-") + } printDataGBK, _ := jxutils.Utf8ToGbk([]byte(utils.FilterEmoji(content))) printData = hex.EncodeToString(printDataGBK) printData = replaceContent(printData, printMsg)