This commit is contained in:
suyl
2021-07-09 18:45:58 +08:00
parent 86d99338ed
commit 44b67ac9d4

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("001a0101")+len(realSound))/2)
allLen := fmt.Sprintf("%x", (len("fd001a0101")+len(realSound))/2)
if len(allLen) < 2 {
allLen = "0" + allLen
}