uniapp开发微信小程序中拉起客服报错{errCode: 6, errMsg: "openCustomerServiceChat:fail not bind"},
源代码是
<button class="partsBtn" @click="toExternal" type="default">
客服
</button>
function toExternal() {
uni.openCustomerServiceChat({
extInfo: {
url: "https://work.weixin.qq.com/kfid/kfc197c551670091952"
},
corpId: 'ww0d902aeeeb675a7c',
success(res) {
console.log(res, 'success');
},
fail(err) {
console.log(err, 'fail');
}
})
}
登录https://work.weixin.qq.com/kf/
然后和你当前使用的小程序appid做个关联。报错是 not bind 没绑定。