调用的接口为:配置小程序用户隐私保护指引,POST https://api.weixin.qq.com/cgi-bin/component/setprivacysetting?access_token=ACCESS_TOKEN
设置的内容如下:
{
"owner_setting": {
"contact_phone": "400-111-2080",
"notice_method": "公告通知"
},
"setting_list": [
{
"privacy_key": "UserInfo",
"privacy_text": "展示用户头像、昵称等信息"
},
{
"privacy_key": "Location",
"privacy_text": "根据位置匹配用户附近可选服务网点"
},
{
"privacy_key": "Address",
"privacy_text": "商品发货使用地址"
},
{
"privacy_key": "Invoice",
"privacy_text": "开订单发票"
},
{
"privacy_key": "RunData",
"privacy_text": "微信运动数据"
},
{
"privacy_key": "Record",
"privacy_text": "IM聊天"
},
{
"privacy_key": "Album",
"privacy_text": "IM聊天,选中的照片或视频信息"
},
{
"privacy_key": "Camera",
"privacy_text": "IM聊天,摄像头"
},
{
"privacy_key": "PhoneNumber",
"privacy_text": "识别用户唯一性"
},
{
"privacy_key": "Contact",
"privacy_text": "通讯录(仅写入)权限"
},
{
"privacy_key": "DeviceInfo",
"privacy_text": "设备信息"
},
{
"privacy_key": "EXIDNumber",
"privacy_text": "身份证号码"
},
{
"privacy_key": "EXOrderInfo",
"privacy_text": "订单信息"
},
{
"privacy_key": "EXUserPublishContent",
"privacy_text": "发布内容"
},
{
"privacy_key": "EXUserFollowAcct",
"privacy_text": "所关注账号"
},
{
"privacy_key": "EXUserOpLog",
"privacy_text": "操作日志"
},
{
"privacy_key": "AlbumWriteOnly",
"privacy_text": "相册(仅写入)权限,保存用户提交的图片"
},
{
"privacy_key": "LicensePlate",
"privacy_text": "车牌号"
},
{
"privacy_key": "BlueTooth",
"privacy_text": "蓝牙"
},
{
"privacy_key": "CalendarWriteOnly",
"privacy_text": "日历(仅写入)权限"
},
{
"privacy_key": "Email",
"privacy_text": "识别用户唯一性"
},
{
"privacy_key": "MessageFile",
"privacy_text": "IM聊天选中的文件"
}
]
}
线上环境报错信息如下:
1:小程序内容不符合规则:
(1):小程序用户信息授权描述不明确或空白,请清晰补充描述用户信息授权目的及信息收集场景,再提交代码审核。
线上小程序APPID为:wx88f22281227aca36
你好。该小程序最新提审版本已于2021-11-24通过代码审核