This commit is contained in:
suyl
2021-07-09 18:26:05 +08:00
parent b270f5e452
commit 86d99338ed

View File

@@ -479,7 +479,7 @@ func replaceContent(content string, printMsg *model.PrintMsg) (result string) {
hexPrefix, _ := jxutils.Utf8ToGbk([]byte(soundPrefix))
hexPrefixStr := hex.EncodeToString(hexPrefix)
realSound := hexPrefixStr + sound
allLen := fmt.Sprintf("%x", (len("fd001a0101")+len(realSound))/2)
allLen := fmt.Sprintf("%x", (len("001a0101")+len(realSound))/2)
if len(allLen) < 2 {
allLen = "0" + allLen
}