修改语音掉线
This commit is contained in:
@@ -306,6 +306,7 @@
|
||||
const topic = topicList[questionNumber.value]
|
||||
touchBtnRef.value?.clearinputText(); // 清除发送框数据
|
||||
if (type === 'voice') {
|
||||
if(topic.es_status == '00') return;
|
||||
topic.es_status = '00'; // 00转圈
|
||||
const voicePath = submitObj;
|
||||
commonUploadVoiceFile(voicePath, '/traask/traAskchat/voiceTrans', {})
|
||||
@@ -327,9 +328,11 @@
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
.catch((error) => {
|
||||
topic.es_status = ''; // 取消转圈
|
||||
common.msg('系统异常,请联系管理员');
|
||||
if (error === 'Other') {
|
||||
common.msg('系统异常,请联系管理员');
|
||||
}
|
||||
});
|
||||
} else if (type === 'text') {
|
||||
topic.es_status = '01';
|
||||
|
||||
Reference in New Issue
Block a user