下方这段代码,能在打电话的硬件端调用吗?还是在小程序端打电话前调用查询授权状态使用。
4.2 当前设备是否被授权
const wmpfVoip = requirePlugin('wmpf-voip').default
wmpfVoip
.getIotBindContactList({
sn: '设备sn',
model_id: '申请的modelid',
openid_list: ['openid_1', 'openid_2'], // 传入需要验证的openid列表
})
.then(res => {
console.log(`[getIotBindContactList]:`, res.contact_list)
// [{sn: 'xxx', model_id: 'xxx', status: 0}]
// status: 0/未授权;1/已授权
})
