From f7a3bdc3fed5ce27380c8f03787a23b297a9f540 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Wed, 12 Aug 2026 10:42:57 +0800 Subject: [PATCH] =?UTF-8?q?Refactor(=E4=BA=91=E7=81=B5AI):ws=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E4=BD=BF=E7=94=A8uid=E6=8B=BC=E6=8E=A5=EF=BC=8C?= =?UTF-8?q?=E5=85=BC=E5=AE=B9APP=E7=99=BB=E5=BD=95=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=88=B0unionId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aiChat/mixins/chatMixins.js | 2 +- aiChat/mixins/chatMixinsV2.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aiChat/mixins/chatMixins.js b/aiChat/mixins/chatMixins.js index 5b59f6b..601d99a 100644 --- a/aiChat/mixins/chatMixins.js +++ b/aiChat/mixins/chatMixins.js @@ -372,7 +372,7 @@ export const chatMixins = { const _this = this console.log('------------------创建连接') uni.connectSocket({ - url: VUE_APP_API_URL.replace('https', 'wss') + settings.sysPrefix + `v1/chat/websocket/${_this.userInfo.unionId}-${conversationId}`, + url: VUE_APP_API_URL.replace('https', 'wss') + settings.sysPrefix + `v1/chat/websocket/${_this.userInfo.uid}-${conversationId}`, header: { 'content-type': 'application/json' }, diff --git a/aiChat/mixins/chatMixinsV2.js b/aiChat/mixins/chatMixinsV2.js index a854680..10ac0c8 100644 --- a/aiChat/mixins/chatMixinsV2.js +++ b/aiChat/mixins/chatMixinsV2.js @@ -334,7 +334,7 @@ export const chatMixinsV2 = { const _this = this console.log('------------------创建连接') uni.connectSocket({ - url: VUE_APP_API_URL.replace('https', 'wss') + settings.sysPrefix + `v1/chat/websocket/${_this.userInfo.unionId}-${conversationId}`, + url: VUE_APP_API_URL.replace('https', 'wss') + settings.sysPrefix + `v1/chat/websocket/${_this.userInfo.uid}-${conversationId}`, header: { 'content-type': 'application/json' },