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