1 .第三方授权小程序,第一次设置隐私保护协议为::[{"privacy_text":"展示用户昵称和头像","privacy_key":"UserInfo"},{"privacy_text":"手机号作为账号登录","privacy_key":"PhoneNumber"},{"privacy_text":"上传作业截图","privacy_key":"Album"},{"privacy_text":"上传作业文档","privacy_key":"MessageFile"},{"privacy_text":"用户快速找到离他最近的可提供其服务的门店","privacy_key":"Location"}] 设置成功
2.解除授权后,重新设置隐私保护协议:[{"privacy_text":"展示用户昵称和头像","privacy_key":"UserInfo"},{"privacy_text":"手机号作为账号登录","privacy_key":"PhoneNumber"},{"privacy_text":"上传作业截图","privacy_key":"Album"},{"privacy_text":"上传作业文档","privacy_key":"MessageFile"}] 得到结果:"setting_list": [
{
"privacy_key": "UserInfo",
"privacy_text": "展示用户昵称和头像",
"privacy_label": ""
},
{
"privacy_key": "PhoneNumber",
"privacy_text": "手机号作为账号登录",
"privacy_label": ""
},
{
"privacy_key": "Album",
"privacy_text": "上传作业截图",
"privacy_label": ""
},
{
"privacy_key": "MessageFile",
"privacy_text": "上传作业文档",
"privacy_label": ""
},
{
"privacy_key": "Location",
"privacy_text": "",
"privacy_label": ""
}
]
为何 "privacy_key": "Location" 这个只是把 privacy_text 置空, privacy_key 为location 清除不掉?