wx.getWeRunData({
success (res) {
// 拿 encryptedData 到开发者后台解密开放数据
const encryptedData = res.encryptedData
// 或拿 cloudID 通过云调用直接获取开放数据
const cloudID = res.cloudID
}
})
类似获取 getWeRunData ? 得到cloudID 。
https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share/private-message.html
wx.authPrivateMessage({
shareTicket: object.shareTicket,
success(res) {
console.log('authPrivateMessage success', res);
//没有这个cloudID ????
},
fail(res) {
console.log('authPrivateMessage fail', res)
}
})
authPrivateMessage 试过,得不到这个CloudID .