JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_修复安卓按钮bug1

This commit is contained in:
田岩
2026-03-09 14:32:29 +08:00
parent 662755e97a
commit 65a7203fd8
17 changed files with 105 additions and 640 deletions
+3 -6
View File
@@ -3,13 +3,10 @@ import { get_base_url } from '@/api/request.js';
import { getPhoneEnvBool } from '@/common/common.js';
const IsAndEnv = getPhoneEnvBool('AND')
// const url = '/trapractice/voiceCallSocket/voiceCall'
// const url = '/traapp/voiceTransSocket/open';
// const url = '/traapp/asrAiModelSocket/open';
const url = '/traapp/asrAiModelSocket/open';
const _baseUrl = get_base_url(url).split('http').join('ws');
// export const wsUrl = _baseUrl + url ;
export const wsUrl = 'ws://10.10.10.4:8000/ws/asr';
export const wsUrl = _baseUrl + url;
// export const wsUrl = 'ws://10.10.10.4:8000/ws/asr';
const windowInfo = uni.getWindowInfo();
// 安全区域信息
const safeArea = windowInfo.safeArea;
@@ -44,7 +41,7 @@ export const initWebSocket = (wsUrl : string) : Promise<UniApp.SocketTask> => {
const onOpenHandler = (res) => {
resolve(ws);
};
// 4. 监听连接错误(出错时reject)
const onErrorHandler = (err) => {
console.log('WS连接错误', err, wsUrl);