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) => {
|
.then(async (res: any) => {
|
||||||
if (res.type === 'application/json') {
|
if (res.type === 'application/json') {
|
||||||
const text = await res.text()
|
const text = await res.text()
|
||||||
MsgError(text)
|
if (this.tryList[index] >= 3) {
|
||||||
|
MsgError(text)
|
||||||
|
}
|
||||||
this.statusList[index] = AudioStatus.ERROR
|
this.statusList[index] = AudioStatus.ERROR
|
||||||
throw ''
|
throw ''
|
||||||
}
|
}
|
||||||
@ -375,8 +377,9 @@ class AudioManage {
|
|||||||
.then(async (res: any) => {
|
.then(async (res: any) => {
|
||||||
if (res.type === 'application/json') {
|
if (res.type === 'application/json') {
|
||||||
const text = await res.text()
|
const text = await res.text()
|
||||||
MsgError(text)
|
if (this.tryList[index] >= 3) {
|
||||||
|
MsgError(text)
|
||||||
|
}
|
||||||
throw ''
|
throw ''
|
||||||
}
|
}
|
||||||
// 假设我们有一个 MP3 文件的字节数组
|
// 假设我们有一个 MP3 文件的字节数组
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user