wx.openCustomerServiceChat 微信小程序调用企业微信名片为什么一直报未绑定?
wx.openCustomerServiceChat({
extInfo: {url: 'https://work.weixin.qq.com/ca/cawcdec2d7f7e67a99'}, // 自定义信息(可选)
corpId: 'wwee42df803cab8398', // 企业微信的 CorpID(如果是企业微信小程序)
success(res) {
console.log('客服会话打开成功', res);
},
fail(err) {
uni.showToast({title:'客服会话打开失败'+err,icon:'none'})
console.error('客服会话打开失败', err);
}
});
在微信小程序中调用上面的代码一直报错 {"errCode": 6, "errMsg": "openCustomerServiceChat:fail corpId is not bound to current miniprogram"}
微信小程序后台截图 [图片] 企业微信后台截图 [图片]