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%' }" >