1
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
// 自动合成语音功能
|
||||
|
||||
@@ -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: "",
|
||||
|
||||
Reference in New Issue
Block a user