你好,我们是第三方代开发小程序,提审小程序的时候,当时通过接口设置隐私保护成功了:
url: https://sh.api.weixin.qq.com/cgi-bin/component/setprivacysetting?access_token=69_GKPM6vmJH4Nu67xfSpYm76c1NbdPyUuAAL4JDtRaMO_DOyF10W1HxEVecANWfgX-Qp28k2H1qaleGkkhIyvYu515kmTAExSRK_Svm8U1MmF4xFmJ0HQ1caInhOQyJgWnxUnO7Li0wzF1X9xVGQBiAMDCMX,
params: "{\"owner_setting\":{\"contact_email\":\"\",\"contact_phone\":\"4009628988\",\"contact_qq\":\"\",\"contact_weixin\":\"\",\"ext_file_media_id\":\"\",\"notice_method\":\"小程序弹窗\",\"store_expire_timestamp\":\"\"},\"setting_list\":[{\"privacy_key\":\"UserInfo\",\"privacy_text\":\"活动与信息展示\"},{\"privacy_key\":\"Location\",\"privacy_text\":\"定位最近场馆位置\"},{\"privacy_key\":\"Address\",\"privacy_text\":\"提供商品寄送\"},{\"privacy_key\":\"Album\",\"privacy_text\":\"头像更新与课程评价\"},{\"privacy_key\":\"AlbumWriteOnly\",\"privacy_text\":\"保存报告与分享图片\"},{\"privacy_key\":\"MessageFile\",\"privacy_text\":\"查看小程序中课程、教练、活动富文本详情\"},{\"privacy_key\":\"PhoneNumber\",\"privacy_text\":\"提供咨询服务\"}]}", options: {"timeout":10,"connect_timeout":1,"verify":false}, header: {"Connection":["keep-alive"],"Content-Type":["application\/json; encoding=utf-8"],"Date":["Wed, 21 Jun 2023 10:10:01 GMT"],"Content-Length":["27"]},
response_data: {"errcode":0,"errmsg":"ok"}
查询隐私保护审核结果也是成功的:
https://api.weixin.qq.com/wxa/security/get_code_privacy_info?access_token=ACCESS_TOKEN
{
errcode: 0,
errmsg: "ok",
without_auth_list: [ ],
without_conf_list: [ ]
}
但时通过获取隐私保护接口:https://api.weixin.qq.com/cgi-bin/component/getprivacysetting?access_token=ACCESS_TOKEN
显示是未设置:
{
errcode: 0,
errmsg: "ok",
code_exist: 1,
privacy_list: [ ],
setting_list: [ ],
update_time: 0,
owner_setting:
{
contact_phone: "",
contact_email: "",
contact_qq: "",
contact_weixin: "",
store_expire_timestamp: "",
ext_file_media_id: "",
notice_method: "",
store_region: 0
},
privacy_desc:
{
privacy_desc_list:
[]
},
sdk_privacy_info_list: [ ]
}
请帮忙查下这是什么原因造成的,谢谢!APPID:wx3f9af1a72e2b9e0e 设置隐私保护时间:2023-06-21 18:10:01
你好,请提供下接收到的通知截图、将调用获取小程序用户隐私保护指引getPrivacySetting的请求包(包括token)提供完整,查询的是现网版还是开发版?
现网版:
url: https://sh.api.weixin.qq.com/cgi-bin/component/getprivacysetting?access_token=70_g7bF_4GRXY3i7EQo1xdyX2EWs5vKcpK0Ennq7hGaGmXbUFISvB_t0ZahNf-KRbn5_zQARPvHIkgMYtcJRha3BMpUUy3Jf1I8KUyb66AThJvCaD0tV6-U-8E5Mn5ybcwqJyCpY6V7GlOkqly8ZOIcAKDGVP,
params: "{\"privacy_ver\":\"2\"}",
options: {"timeout":10,"connect_timeout":1,"verify":false},
header: {"Connection":["keep-alive"],"Content-Type":["application\/json; encoding=utf-8"],"Date":["Mon, 26 Jun 2023 02:41:56 GMT"],"Content-Length":["2556"]},
response_data: {"errcode":0,"errmsg":"ok","code_exist":1,"privacy_list":["Location","Address","Album","PhoneNumber","AlbumWriteOnly","MessageFile"],"setting_list":[{"privacy_key":"Location","privacy_text":"","privacy_label":""},{"privacy_key":"Address","privacy_text":"","privacy_label":""},{"privacy_key":"Album","privacy_text":"","privacy_label":""},{"privacy_key":"PhoneNumber","privacy_text":"","privacy_label":""},{"privacy_key":"AlbumWriteOnly","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":"","store_region":0},"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_key":"ChooseLocation","privacy_desc":"选择的位置信息"},{"privacy_key":"Accelerometer","privacy_desc":"加速传感器"},{"privacy_key":"Compass","privacy_desc":"磁场传感器"},{"privacy_key":"DeviceMotion","privacy_desc":"方向传感器"},{"privacy_key":"Gyroscope","privacy_desc":"陀螺仪传感器"},{"privacy_key":"Clipboard","privacy_desc":"剪切板"}]},"sdk_privacy_info_list":[]}
开发版:
url: https://sh.api.weixin.qq.com/cgi-bin/component/getprivacysetting?access_token=70_g7bF_4GRXY3i7EQo1xdyX2EWs5vKcpK0Ennq7hGaGmXbUFISvB_t0ZahNf-KRbn5_zQARPvHIkgMYtcJRha3BMpUUy3Jf1I8KUyb66AThJvCaD0tV6-U-8E5Mn5ybcwqJyCpY6V7GlOkqly8ZOIcAKDGVP,
params: "{\"privacy_ver\":\"1\"}",
options: {"timeout":10,"connect_timeout":1,"verify":false},
header: {"Connection":["keep-alive"],"Content-Type":["application\/json; encoding=utf-8"],"Date":["Mon, 26 Jun 2023 02:41:48 GMT"],"Content-Length":["2556"]},
response_data: {"errcode":0,"errmsg":"ok","code_exist":1,"privacy_list":["Location","Address","Album","PhoneNumber","AlbumWriteOnly","MessageFile"],"setting_list":[{"privacy_key":"Location","privacy_text":"","privacy_label":""},{"privacy_key":"Address","privacy_text":"","privacy_label":""},{"privacy_key":"Album","privacy_text":"","privacy_label":""},{"privacy_key":"PhoneNumber","privacy_text":"","privacy_label":""},{"privacy_key":"AlbumWriteOnly","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":"","store_region":0},"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_key":"ChooseLocation","privacy_desc":"选择的位置信息"},{"privacy_key":"Accelerometer","privacy_desc":"加速传感器"},{"privacy_key":"Compass","privacy_desc":"磁场传感器"},{"privacy_key":"DeviceMotion","privacy_desc":"方向传感器"},{"privacy_key":"Gyroscope","privacy_desc":"陀螺仪传感器"},{"privacy_key":"Clipboard","privacy_desc":"剪切板"}]},"sdk_privacy_info_list":[]}
注意:小程序用户隐私保护指引项的说明需要有准确、清晰的使用场景、目的。https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/product/privacy_setting.html
url: https://sh.api.weixin.qq.com/wxa/security/get_code_privacy_info?access_token=69_GKPM6vmJH4Nu67xfSpYm76c1NbdPyUuAAL4JDtRaMO_DOyF10W1HxEVecANWfgX-Qp28k2H1qaleGkkhIyvYu515kmTAExSRK_Svm8U1MmF4xFmJ0HQ1caInhOQyJgWnxUnO7Li0wzF1X9xVGQBiAMDCMX,
params: [],
options: {"timeout":10,"connect_timeout":1,"verify":false},
header: {"Connection":["keep-alive"],"Content-Type":["application\/json; charset=UTF-8"],"Content-Length":["73"]},
response_data: {"errcode":0,"errmsg":"ok","without_auth_list":[],"without_conf_list":[]}