From 65f3ac63302591effa6eb8d7e896e2d496186a1d Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Fri, 9 Jul 2021 15:22:25 +0800 Subject: [PATCH] aa --- business/jxstore/event/event_tcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/event/event_tcp.go b/business/jxstore/event/event_tcp.go index 69fab35ca..6ce15fae9 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -474,7 +474,7 @@ func replaceContent(content string, printMsg *model.PrintMsg) (result string) { //fd 固定 //001a (声音数据长度高八位低八位) //0101 固定 - soundPerfix := "[" + utils.Int2Str(printer.Volume*2) + "]" + printer.Sound + "," + soundPerfix := "[v" + utils.Int2Str(printer.Volume*2) + "]" + printer.Sound + "," hexPrefix, _ := jxutils.Utf8ToGbk([]byte(soundPerfix)) hexPrefixStr := hex.EncodeToString(hexPrefix) realSound := hexPrefixStr + sound