aa
This commit is contained in:
@@ -479,7 +479,7 @@ func replaceContent(content string, printMsg *model.PrintMsg) (result string) {
|
|||||||
hexPrefix, _ := jxutils.Utf8ToGbk([]byte(soundPrefix))
|
hexPrefix, _ := jxutils.Utf8ToGbk([]byte(soundPrefix))
|
||||||
hexPrefixStr := hex.EncodeToString(hexPrefix)
|
hexPrefixStr := hex.EncodeToString(hexPrefix)
|
||||||
realSound := hexPrefixStr + sound
|
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 {
|
if len(allLen) < 2 {
|
||||||
allLen = "0" + allLen
|
allLen = "0" + allLen
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user