This commit is contained in:
邹宗楠
2022-07-27 14:07:27 +08:00
parent 46905fa513
commit 955b271eb3
3 changed files with 2 additions and 5 deletions

View File

@@ -491,7 +491,7 @@ func replaceContent(content string, printMsg *model.PrintMsg) (result string) {
}
globals.SugarLogger.Debug("voice==================", voice)
result = strings.ReplaceAll(result, sound, "")
result = strings.ReplaceAll(result, byteSignSound, "1B59415502")
result = strings.ReplaceAll(result, byteSignSound, "1B594155021B594155031B594155041B594155051B594155061B594155071B59415508")
}
}
// 自动合成语音功能

View File

@@ -13,7 +13,7 @@ func TestPrintMsg(t *testing.T) {
msg := &model.PrintMsg{
ModelIDCULD: model.ModelIDCULD{},
PrintNo: "20220707000002",
Content: "<sound>20</sound>",
Content: "<sound>21</sound>",
OrderNo: 202207261655,
Status: 0,
Comment: "",