收藏
回答

查询小程序隐私保护指引中的privacy_list扫描的是哪个版本是代码?

文档中有说明privacy_list是“代码检测出来的用户信息类型(privacy_key)”,想咨询下privacy_list扫描的是否是最近一次调用commit接口提交的代码?

目前我们的小程序appId:wxeb51e1062994380d已经在最新commit的代码中删除了对陀螺仪的调用代码,但privacy_list还是返回了Gyroscope

调用https://api.weixin.qq.com/cgi-bin/component/getprivacysetting完整返回如下:

{"errcode":0,"errmsg":"ok","code_exist":1,"privacy_list":["PhoneNumber","Record","Camera","Clipboard","Compass","Gyroscope","Accelerometer","DeviceMotion","AlbumWriteOnly","Address","Location"],"setting_list":[{"privacy_key":"UserInfo","privacy_text":"帮助您成为我们的会员,为微信内分享活动、拼单提供昵称、头像信息","privacy_label":""},{"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":"Camera","privacy_text":"提供扫一扫、扫码点餐、活动页面生成分享图及其他相关服务","privacy_label":""},{"privacy_key":"Record","privacy_text":"提供通过语音识别参与商家优惠活动的服务","privacy_label":""},{"privacy_key":"AlbumWriteOnly","privacy_text":"实现更换头像、生成美图分享海报等功能","privacy_label":""},{"privacy_key":"Clipboard","privacy_text":"复制活动链接、分享给朋友","privacy_label":""},{"privacy_key":"Compass","privacy_text":"","privacy_label":""},{"privacy_key":"Gyroscope","privacy_text":"","privacy_label":""},{"privacy_key":"Accelerometer","privacy_text":"","privacy_label":""},{"privacy_key":"DeviceMotion","privacy_text":"","privacy_label":""}],"update_time":1699469093,"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":[]}
回答关注问题邀请回答
收藏

1 个回答

  • 第三方平台小助手
    第三方平台小助手
    2023-11-09

    你好,以privacy_ver参数为准

    2023-11-09
    有用
    回复 2
    • Dreambee
      Dreambee
      2023-11-09
      你好,我补充下,我上面的privacy_ver传的2,查询的是开发版。那么开发版情况下,privacy_list是扫描的哪个版本的代码呀?我这边已经在最新一次commit的代码中删除了对陀螺仪的调用代码,但privacy_list还是返回了Gyroscope
      2023-11-09
      回复
    • 第三方平台小助手
      第三方平台小助手
      2023-11-10回复Dreambee
      开发版;怎么确定确实已删除相关代码了?提供相关截图证明,将上传代码时间点、小程序wxeb51e1062994380d查询getprivacysetting接口的请求包(token)、回包、操作时间点信息提供完整
      2023-11-10
      回复
登录 后发表内容