JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_修复安卓app端人数过多时候无法正确显示
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user