From 8af3c0ccb96c93bf9f5b1d22128cd61b57f787fa Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Mon, 20 Apr 2026 17:50:37 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E5=BE=AE=E4=BF=A1=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=9C=9F=E6=9C=BA=E7=89=88=E6=9C=AC=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E8=BF=90=E8=A1=8C=EF=BC=8C=E5=BE=AE=E4=BF=A1=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=AE=A2=E6=9C=8D=E5=9B=BE=E6=A0=87=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local.config.js | 8 ++++++-- common/js/ai-service.js | 12 +++++++----- components/hover-nav/hover-nav.vue | 2 -- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.local.config.js b/.local.config.js index f3c4732..c79b76b 100644 --- a/.local.config.js +++ b/.local.config.js @@ -45,7 +45,11 @@ const localDevConfig = ({ '2847': { // 家居装饰品 uniacid: 2847, domain: 'https://xcx6.aigc-quickapp.com/', - }, -})['1']; // 选择要使用的环境配置 + }, + '5g-1': { // 开发平台 + uniacid: 1, + domain: 'https://5g.aigc-quickapp.com/', + }, +})['5g-1']; // 选择要使用的环境配置 export default localDevConfig; \ No newline at end of file diff --git a/common/js/ai-service.js b/common/js/ai-service.js index 4a77921..f099346 100644 --- a/common/js/ai-service.js +++ b/common/js/ai-service.js @@ -64,11 +64,13 @@ export default { // #ifdef MP-WEIXIN return new Promise((resolve, reject) => { const match = Config.baseUrl.match(/^(?:https?:\/\/|wss?:\/\/)([^\/\s:]+)/); - const domain = match ? match[1] : ''; - const socketTask = wx.connectSocket({ - url: `wss://${domain}/ws/aikefu`, - header: {} - }); + const domain = match ? match[1] : ''; + const wssUrl = `wss://${domain}/ws/aikefu`; + console.log(`wssUrl = ${wssUrl}`); + const socketTask = wx.connectSocket({ + url: wssUrl, + header: {} + }); let content = ''; let conversationId = ''; diff --git a/components/hover-nav/hover-nav.vue b/components/hover-nav/hover-nav.vue index 0f6d67b..1a8310d 100644 --- a/components/hover-nav/hover-nav.vue +++ b/components/hover-nav/hover-nav.vue @@ -18,7 +18,6 @@ v-if="fixBtnShow && hasValidKefuConfig && isWeappOfficialKefu" class="btn-item common-bg" open-type="contact" - :style="{ backgroundImage: currentKefuImg ? `url(${currentKefuImg})` : '', backgroundSize: '100% 100%' }" > @@ -62,7 +61,6 @@ v-if="fixBtnShow && hasValidKefuConfig && showWeappSystemKefu" class="btn-item common-bg" open-type="contact" - :style="{ backgroundImage: currentKefuImg ? `url(${currentKefuImg})` : '', backgroundSize: '100% 100%' }" >