From e8009a845cf3f844fa1518934e7810b11ca4c606 Mon Sep 17 00:00:00 2001 From: yangzhe Date: Mon, 16 Mar 2026 16:47:41 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=AB=AF=E5=8F=A3=E4=BB=8E8082=E6=94=B9?= =?UTF-8?q?=E4=B8=BA8073?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- common/http.interceptor.js | 4 ++-- config/websocket.config.js | 4 ++-- pages/test/websocket-test.vue | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/App.vue b/App.vue index e9f5c42..804e6d0 100644 --- a/App.vue +++ b/App.vue @@ -109,7 +109,7 @@ export default { window.location.protocol.indexOf("https") === 0 ? "wss" : "ws"; const Id = (this.vuex_user && (this.vuex_user.id || this.vuex_user.Id)) || ""; - return `${protocol}://120.55.234.65:8082/api/Dialogue/HandleConnection?Id=${Id}`; // &equipmentType=0 + return `${protocol}://120.55.234.65:8073/api/Dialogue/HandleConnection?Id=${Id}`; // &equipmentType=0 }, // 初始化原生 WebSocket 连接 initWebSocket() { diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 8a30b11..34cb25c 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -4,8 +4,8 @@ const install = (Vue, vm) => { Vue.prototype.$u.http.setConfig({ // baseUrl: 'https://xy.apps.service.zheke.com', // imgUrl: 'https://xy.apps.service.zheke.com/', - baseUrl: "http://120.55.234.65:8082", - imgUrl: "http://120.55.234.65:8082/", + baseUrl: "http://120.55.234.65:8073", + imgUrl: "http://120.55.234.65:8073/", // imgUrl:'http://115.238.47.235:8987/', // baseUrl: 'http://115.238.47.235:8993', // 如果将此值设置为true,拦截回调中将会返回服务端返回的所有数据response,而不是response.data diff --git a/config/websocket.config.js b/config/websocket.config.js index 5c45569..172da21 100644 --- a/config/websocket.config.js +++ b/config/websocket.config.js @@ -9,10 +9,10 @@ const getWebSocketUrl = () => { // #ifdef H5 // H5 开发环境 if (process.env.NODE_ENV === 'development') { - return 'ws://localhost:8082/ws/chat' + return 'ws://localhost:8073/ws/chat' } // H5 生产环境 - return 'wss://120.55.234.65:8082/ws/chat' + return 'wss://120.55.234.65:8073/ws/chat' // #endif } diff --git a/pages/test/websocket-test.vue b/pages/test/websocket-test.vue index 02e6fa9..a2535ce 100644 --- a/pages/test/websocket-test.vue +++ b/pages/test/websocket-test.vue @@ -250,7 +250,7 @@ export default { // 本地服务器测试 testLocalServer() { - this.wsUrl = 'ws://localhost:8082/ws/chat?token=test-token' + this.wsUrl = 'ws://localhost:8073/ws/chat?token=test-token' this.messageToSend = JSON.stringify({ type: 'message', fromUserId: 'test_user',