我在搞支付宝小程序的客服功能,我们自己的小程序里面有一个客服的功能,想问一下对接小程序客服需要在开放平台开通吗,我前端是这样的
const KeFu = () => {
uni.openCustomerServiceChat({
corpId: '',
showMessageCard: true,
success(res) {
console.log(res);
},
fail(res: any) {
uni.showToast({
title: res,
icon: 'none',
duration: 2000
})
},
})
}
然后一直给我报提示TypeError: common_vendor.index.openCustomerServiceChat is not a function,不知道是不是uniapp版本问题还是说开放平台没配置,还是说我用的这个API不对,有没有大佬指点一下