const MiniprogramThirdpartyPlugin = requirePlugin('miniprogram-thirdparty-plugin')
// 初始化
MiniprogramThirdpartyPlugin.init(wx)
// 请求用户授权
MiniprogramThirdpartyPlugin.openAuthorizeAccount({
platformAppID: '',
preAuthCode:‘’,//获取的预授权码
authType:3,
bizAppid: wxxxxxxxxx
})
使用该插件后,系统端怎么获取授权状态
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/authorize_event.html
会收到授权成功消息推送。