fix: After trying voice playback three times and sending an error message, an error message pops up (#2772)

This commit is contained in:
shaohuzhang1 2025-04-02 13:41:14 +08:00 committed by GitHub
parent fb0fdb9c85
commit 339e18d837
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -314,7 +314,9 @@ class AudioManage {
.then(async (res: any) => {
if (res.type === 'application/json') {
const text = await res.text()
MsgError(text)
if (this.tryList[index] >= 3) {
MsgError(text)
}
this.statusList[index] = AudioStatus.ERROR
throw ''
}
@ -375,8 +377,9 @@ class AudioManage {
.then(async (res: any) => {
if (res.type === 'application/json') {
const text = await res.text()
MsgError(text)
if (this.tryList[index] >= 3) {
MsgError(text)
}
throw ''
}
// MP3