Skip to main content
Version: 3.x

AuthSetting

用户授权设置信息,详情参考权限

参考文档

方法#

参数类型必填说明
scope.addressboolean是否授权通讯地址,对应接口 wx.chooseAddress
scope.cameraboolean是否授权摄像头,对应[camera](https://developers.weixin.qq.com/miniprogram/dev/component/camera.html) 组件
scope.invoiceboolean是否授权获取发票,对应接口 wx.chooseInvoice
scope.invoiceTitleboolean是否授权发票抬头,对应接口 wx.chooseInvoiceTitle
scope.recordboolean是否授权录音功能,对应接口 wx.startRecord
scope.userInfoboolean是否授权用户信息,对应接口 wx.getUserInfo
scope.userLocationboolean是否授权地理位置,对应接口 wx.getLocation, wx.chooseLocation
scope.werunboolean是否授权微信运动步数,对应接口 wx.getWeRunData
scope.writePhotosAlbumboolean是否授权保存到相册 wx.saveImageToPhotosAlbum, wx.saveVideoToPhotosAlbum