mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: After trying voice playback three times and sending an error message, an error message pops up (#2772)
This commit is contained in:
parent
fb0fdb9c85
commit
339e18d837
|
|
@ -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 文件的字节数组
|
||||
|
|
|
|||
Loading…
Reference in New Issue