问题描述:我使用接口调用了/cgi-bin/component/getprivacysetting设置小程序用户隐私保护指引后,微信给我返回成功。但是我再调用 /cgi-bin/component/getprivacysetting查询的时候,privacy_text 一直为空。根据文档上说明:privacy_text为空就是没有设置成功 ,我重复校对了参数,以及接口,没有发现问题。微信给我返回的也是成功的标致!!重复提交审核都是说 “内容中有涉及收集用户信息的组件” 导致一直审核不成功,麻烦大家看一下。
小程序appId : wxd607c18def990013
调用接口:https://api.weixin.qq.com/cgi-bin/component/getprivacysetting
设置小程序用户隐私保护接口起请求参数:
{
"owner_setting":{
"notice_method":"notice_method"
},
"setting_list":[
{
"privacy_key":"UserInfo",
"privacy_text":"提供更好的用户体验"
},
{
"privacy_key":"Location",
"privacy_text":"更好的提供本地服务"
},
{
"privacy_key":"Album",
"privacy_text":"更改用户个性化设置"
},
{
"privacy_key":"MessageFile",
"privacy_text":"让用户提供必要的资料信息"
}
],
"privacy_ver":2
}
设置小程序用户隐私保护接口起返回参数:
{
"message": "成功",
"status": 200,
"data": {
"errcode": 0,
"errmsg": "ok",
"code_exist": 1,
"privacy_list": [
"UserInfo",
"Location",
"Album",
"MessageFile"
],
"setting_list": [
{
"privacy_key": "UserInfo",
"privacy_text": "",
"privacy_label": ""
},
{
"privacy_key": "Location",
"privacy_text": "",
"privacy_label": ""
},
{
"privacy_key": "Album",
"privacy_text": "",
"privacy_label": ""
},
{
"privacy_key": "MessageFile",
"privacy_text": "",
"privacy_label": ""
}
],
"update_time": 0,
"owner_setting": {
"contact_phone": "",
"contact_email": "",
"contact_qq": "",
"contact_weixin": "",
"store_expire_timestamp": "",
"ext_file_media_id": "",
"notice_method": ""
},
"privacy_desc": {
"privacy_desc_list": [
{
"privacy_key": "UserInfo",
"privacy_desc": "用户信息(微信昵称、头像)"
},
{
"privacy_key": "Location",
"privacy_desc": "位置信息"
},
{
"privacy_key": "Address",
"privacy_desc": "地址"
},
{
"privacy_key": "Invoice",
"privacy_desc": "发票信息"
},
{
"privacy_key": "RunData",
"privacy_desc": "微信运动数据"
},
{
"privacy_key": "Record",
"privacy_desc": "麦克风"
},
{
"privacy_key": "Album",
"privacy_desc": "选中的照片或视频信息"
},
{
"privacy_key": "Camera",
"privacy_desc": "摄像头"
},
{
"privacy_key": "PhoneNumber",
"privacy_desc": "手机号"
},
{
"privacy_key": "Contact",
"privacy_desc": "通讯录(仅写入)权限"
},
{
"privacy_key": "DeviceInfo",
"privacy_desc": "设备信息"
},
{
"privacy_key": "EXIDNumber",
"privacy_desc": "身份证号码"
},
{
"privacy_key": "EXOrderInfo",
"privacy_desc": "订单信息"
},
{
"privacy_key": "EXUserPublishContent",
"privacy_desc": "发布内容"
},
{
"privacy_key": "EXUserFollowAcct",
"privacy_desc": "所关注账号"
},
{
"privacy_key": "EXUserOpLog",
"privacy_desc": "操作日志"
},
{
"privacy_key": "AlbumWriteOnly",
"privacy_desc": "相册(仅写入)权限"
},
{
"privacy_key": "LicensePlate",
"privacy_desc": "车牌号"
},
{
"privacy_key": "BlueTooth",
"privacy_desc": "蓝牙"
},
{
"privacy_key": "CalendarWriteOnly",
"privacy_desc": "日历(仅写入)权限"
},
{
"privacy_key": "Email",
"privacy_desc": "邮箱"
},
{
"privacy_key": "MessageFile",
"privacy_desc": "选中的文件"
}
]
}
}
}
其中返回的 privacy_text 字段一直为空,无法设置成功!!!!
查询接口 :https://api.weixin.qq.com/cgi-bin/component/getprivacysetting
响应结果如下:
小程序appid:wxd607c18def990013
privacyVer参数:2
{
"message": "成功",
"status": 200,
"data": {
"errcode": 0,
"errmsg": "ok",
"code_exist": 1,
"privacy_list": [
"UserInfo",
"Location",
"Album",
"MessageFile"
],
"setting_list": [
{
"privacy_key": "UserInfo",
"privacy_text": "",
"privacy_label": ""
},
{
"privacy_key": "Location",
"privacy_text": "",
"privacy_label": ""
},
{
"privacy_key": "Album",
"privacy_text": "",
"privacy_label": ""
},
{
"privacy_key": "MessageFile",
"privacy_text": "",
"privacy_label": ""
}
],
"update_time": 0,
"owner_setting": {
"contact_phone": "",
"contact_email": "",
"contact_qq": "",
"contact_weixin": "",
"store_expire_timestamp": "",
"ext_file_media_id": "",
"notice_method": ""
},
"privacy_desc": {
"privacy_desc_list": [
{
"privacy_key": "UserInfo",
"privacy_desc": "用户信息(微信昵称、头像)"
},
{
"privacy_key": "Location",
"privacy_desc": "位置信息"
},
{
"privacy_key": "Address",
"privacy_desc": "地址"
},
{
"privacy_key": "Invoice",
"privacy_desc": "发票信息"
},
{
"privacy_key": "RunData",
"privacy_desc": "微信运动数据"
},
{
"privacy_key": "Record",
"privacy_desc": "麦克风"
},
{
"privacy_key": "Album",
"privacy_desc": "选中的照片或视频信息"
},
{
"privacy_key": "Camera",
"privacy_desc": "摄像头"
},
{
"privacy_key": "PhoneNumber",
"privacy_desc": "手机号"
},
{
"privacy_key": "Contact",
"privacy_desc": "通讯录(仅写入)权限"
},
{
"privacy_key": "DeviceInfo",
"privacy_desc": "设备信息"
},
{
"privacy_key": "EXIDNumber",
"privacy_desc": "身份证号码"
},
{
"privacy_key": "EXOrderInfo",
"privacy_desc": "订单信息"
},
{
"privacy_key": "EXUserPublishContent",
"privacy_desc": "发布内容"
},
{
"privacy_key": "EXUserFollowAcct",
"privacy_desc": "所关注账号"
},
{
"privacy_key": "EXUserOpLog",
"privacy_desc": "操作日志"
},
{
"privacy_key": "AlbumWriteOnly",
"privacy_desc": "相册(仅写入)权限"
},
{
"privacy_key": "LicensePlate",
"privacy_desc": "车牌号"
},
{
"privacy_key": "BlueTooth",
"privacy_desc": "蓝牙"
},
{
"privacy_key": "CalendarWriteOnly",
"privacy_desc": "日历(仅写入)权限"
},
{
"privacy_key": "Email",
"privacy_desc": "邮箱"
},
{
"privacy_key": "MessageFile",
"privacy_desc": "选中的文件"
}
]
}
}
}
{ "owner_setting" : { "contact_email" : "66666@qq.com", "notice_method" : "弹窗", }, "setting_list" : [ { "privacy_key" : "UserInfo", "privacy_text" : "订单上显示用户信息" }, { "privacy_key" : "Location", "privacy_text" : "为用户提供基于位置的配送服务" }, { "privacy_key" : "Address", "privacy_text" : "为订单提供用户地址信息" }, { "privacy_key" : "Album", "privacy_text" : "管理员上传商品图片" }, { "privacy_key" : "MessageFile", "privacy_text" : "管理员上传产品文档" } ], "privacy_ver":2 } 仅供参考。目测与你不同的是owner_setting