小程序appid:wx9937cdaf8843a50f 通过第三方平台提审发布小程序。
上线一段时间后,小程序授权提示该错误 "getUserProfile:fail api scope is not declared in the privacy agreement"。
按照社区的其他回答更新了隐私协议,无效。
直接通过接口查询已申请的权限,似乎也无问题,麻烦解答下。
具体接口返回内容如下:
{
"errcode": 0,
"errmsg": "ok",
"code_exist": 1,
"privacy_list": [
"PhoneNumber",
"AlbumWriteOnly"
],
"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": "Location",
"privacy_text": "根据地理位置推荐附近的门店",
"privacy_label": ""
},
{
"privacy_key": "PhoneNumber",
"privacy_text": "注册用户账号、必要的身份验证",
"privacy_label": ""
},
{
"privacy_key": "DeviceInfo",
"privacy_text": "便于排查系统故障",
"privacy_label": ""
},
{
"privacy_key": "EXIDNumber",
"privacy_text": "满足商家按照国家法律法规对顾客真实身份信息认证的要求",
"privacy_label": ""
},
{
"privacy_key": "EXOrderInfo",
"privacy_text": "提供订单服务",
"privacy_label": ""
},
{
"privacy_key": "EXUserOpLog",
"privacy_text": "便于排查系统故障",
"privacy_label": ""
},
{
"privacy_key": "AlbumWriteOnly",
"privacy_text": "保存商家联系方式(二维码)",
"privacy_label": ""
}
],
"update_time": 1699406593,
"owner_setting": {
"contact_phone": "",
"contact_email": "product@yaochufa.com",
"contact_qq": "",
"contact_weixin": "",
"store_expire_timestamp": "",
"ext_file_media_id": "",
"notice_method": "contact_email",
"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、提审发布新版本
2、通过接口重新设置隐私协议
擦 又自动恢复了 , 看来是需要重新提审发布代码才行