chore:微信小程序真机版本可以运行,微信小程序客服图标显示正常

This commit is contained in:
2026-04-20 17:50:37 +08:00
parent d8b78168a8
commit 8af3c0ccb9
3 changed files with 13 additions and 9 deletions

View File

@@ -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;

View File

@@ -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 = '';

View File

@@ -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%' }"
>
<text class="icox icox-kefu" v-if="!kefuimg"></text>
</button>
@@ -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%' }"
>
<text class="icox icox-kefu" v-if="!kefuimg"></text>
</button>