diff --git a/src/views/voice/recordPage/index.vue b/src/views/voice/recordPage/index.vue index 0461230..4eb30cb 100644 --- a/src/views/voice/recordPage/index.vue +++ b/src/views/voice/recordPage/index.vue @@ -85,9 +85,12 @@ if (window.location.protocol.includes('https')) { wsuri = `wss://${window.location.host}/voiceWebsocket`; } else { - wsuri = `ws://192.168.20.43:8102/voiceWebsocket`; + // wsuri = `ws://192.168.20.43:8102/voiceWebsocket`; // wsuri = `ws://139.155.49.237:8201/voiceWebsocket`; - // wsuri = `ws://${window.location.host}/voiceWebsocket`; + wsuri = `ws://${window.location.host}/voiceWebsocket`; + // wsuri = `ws://server1.wh-nf.cn:8201/voiceWebsocket`; + + } data.recognizeWs = new WebSocket(wsuri); @@ -152,6 +155,7 @@ break; default: + proxy.$modal.msgWarning('该指令操作有误,请重新录音'); nowword.value = `成功识别语音,返回的指令为:${params.recognitionResult}`; break; } @@ -161,7 +165,9 @@ let at=guessArr.value let data={ recognitionDataId:item.businessDataId, - recognitionActionCode: at.recognitionActionCode == 'error'?at.actionList[0].businessSourceCode:at.recognitionActionCode, + recognitionActionCode: 'detail', + + // recognitionActionCode: at.recognitionActionCode == 'error'?at.actionList[0].businessSourceCode:at.recognitionActionCode, recognitionDataSourceCode:at.recognitionDataSourceCode, recognitionResult:at.recognitionResult, } diff --git a/src/views/voice/recordPage/index.vue b/src/views/voice/recordPage/index.vue index 0461230..4eb30cb 100644 --- a/src/views/voice/recordPage/index.vue +++ b/src/views/voice/recordPage/index.vue @@ -85,9 +85,12 @@ if (window.location.protocol.includes('https')) { wsuri = `wss://${window.location.host}/voiceWebsocket`; } else { - wsuri = `ws://192.168.20.43:8102/voiceWebsocket`; + // wsuri = `ws://192.168.20.43:8102/voiceWebsocket`; // wsuri = `ws://139.155.49.237:8201/voiceWebsocket`; - // wsuri = `ws://${window.location.host}/voiceWebsocket`; + wsuri = `ws://${window.location.host}/voiceWebsocket`; + // wsuri = `ws://server1.wh-nf.cn:8201/voiceWebsocket`; + + } data.recognizeWs = new WebSocket(wsuri); @@ -152,6 +155,7 @@ break; default: + proxy.$modal.msgWarning('该指令操作有误,请重新录音'); nowword.value = `成功识别语音,返回的指令为:${params.recognitionResult}`; break; } @@ -161,7 +165,9 @@ let at=guessArr.value let data={ recognitionDataId:item.businessDataId, - recognitionActionCode: at.recognitionActionCode == 'error'?at.actionList[0].businessSourceCode:at.recognitionActionCode, + recognitionActionCode: 'detail', + + // recognitionActionCode: at.recognitionActionCode == 'error'?at.actionList[0].businessSourceCode:at.recognitionActionCode, recognitionDataSourceCode:at.recognitionDataSourceCode, recognitionResult:at.recognitionResult, } diff --git a/vite.config.js b/vite.config.js index ca8d2ce..4ddbb34 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,10 +5,10 @@ import autoprefixer from 'autoprefixer'; const Timestamp = new Date().getTime(); //随机时间戳 -// let ipLink = 'https://server1.wh-nf.cn:8201/prod-api'; +let ipLink = 'https://server1.wh-nf.cn:8201/prod-api'; // let ipLink = 'http://192.168.16.135:9100'; // let ipLink = 'http://192.168.16.124:9100'; -let ipLink = 'http://192.168.20.43:9100'; // 刘总 +// let ipLink = 'http://192.168.20.43:9100'; // 刘总 /* */ // https://vitejs.dev/config/ export default defineConfig(({ mode, command }) => {