JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_修复安卓app端人数过多时候无法正确显示

This commit is contained in:
田岩
2025-12-25 17:29:32 +08:00
parent 87a1e7fe83
commit 0690962735
15 changed files with 26 additions and 19 deletions
+13 -6
View File
@@ -83,6 +83,7 @@ export default function useWebSocket(aaas = null, options = {}) {
playPcmCallback(numArray)
break;
case MessageType.ERROR:
console.log('错误',body.errCode, body.errMsg);
switch (body.errCode) {
case 1:
// ASR或TTS初始化出错
@@ -104,14 +105,20 @@ export default function useWebSocket(aaas = null, options = {}) {
code: 4001,
reason: body.errMsg
})
onClose({
code: 4001,
reason: body.errMsg
})
break;
default:
console.log('其他错误码的默认处理', body);
// 其他错误码的默认处理(如果需要)
// ws.value.close({
// code: 1001,
// reason: body.errMsg
// })
ws.value.close({
code: 4001,
reason: body.errMsg
})
onClose({
code: 4001,
reason: body.errMsg
})
break;
}
break;