From e392777487895e363532fbd1f29c7984990c06a9 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Fri, 9 Jul 2021 15:20:09 +0800 Subject: [PATCH] test sound --- 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 ea7492ab2..69fab35ca 100644 --- a/business/jxstore/event/event_tcp.go +++ b/business/jxstore/event/event_tcp.go @@ -482,7 +482,7 @@ func replaceContent(content string, printMsg *model.PrintMsg) (result string) { if len(allLen) < 2 { allLen = "0" + allLen } - soundLenH, soundLenX := int2h8l8(int64(len(realSound) + len("0101")/2)) + soundLenH, soundLenX := int2h8l8(int64((len(realSound) + len("0101")) / 2)) result = strings.ReplaceAll(result, byteSignSound, hexSignSound+allLen+"fd"+soundLenH+soundLenX+"0101"+hexPrefixStr) } }