最近一直出现,使用第三方账号发布之前有上架过小程序的账号后,隐私条款总是不能及时更新,返回值一直空
array (
'owner_setting' =>
array (
'contact_phone' => xxx,
'contact_email' => 'xxx@qq.com',
'notice_method' => '短消息',
),
'setting_list' =>
array (
0 =>
array (
'privacy_key' => 'UserInfo',
'privacy_text' => '实现登录、注册小程序,更方便的登录管理账户',
),
1 =>
array (
'privacy_key' => 'Location',
'privacy_text' => '分城市展示不同地图服务',
),
2 =>
array (
'privacy_key' => 'Address',
'privacy_text' => '地图展示、坐标地址获取',
),
3 =>
array (
'privacy_key' => 'Album',
'privacy_text' => '媒体资料内容提交',
),
4 =>
array (
'privacy_key' => 'PhoneNumber',
'privacy_text' => '登录或提交数据',
),
5 =>
array (
'privacy_key' => 'AlbumWriteOnly',
'privacy_text' => '实现头像,资料等数据上传,完善表单信息',
),
6 =>
array (
'privacy_key' => 'MessageFile',
'privacy_text' => '表单数据上传,提供文件上传服务',
),
7 =>
array (
'privacy_key' => 'ChooseLocation',
'privacy_text' => '地图展示、坐标地址获取',
),
),
'privacy_ver' => 2,
)
array(2) { ["errcode"]=> int(0) ["errmsg"]=> string(2) "ok" }
获取条款:
'https://api.weixin.qq.com/cgi-bin/component/getprivacysetting?access_token=69_Knxgag6bSoFrD-dT3XTLxJWVQNja9_elA4QqB55vnkSIebWdvqPWwxkvrloP5220N88oeOd7w_ixDf2HMdGI8XwuEDoUqL0xAxGBkN5nPylL4eo6CEqU5EsPMNSPM3PmdmIcDMb1MrcYaR5KAVAfAKDVQV'
array (
'errcode' => 0,
'errmsg' => 'ok',
'code_exist' => 0,
'privacy_list' =>
array (
),
'setting_list' =>
array (
),
'update_time' => 0,
'owner_setting' =>
array (
'contact_phone' => '',
'contact_email' => '',
'contact_qq' => '',
'contact_weixin' => '',
'store_expire_timestamp' => '',
'ext_file_media_id' => '',
'notice_method' => '',
'store_region' => 0,
),
'privacy_desc' =>
array (
'privacy_desc_list' =>
array (
0 =>
array (
'privacy_key' => 'UserInfo',
'privacy_desc' => '用户信息(微信昵称、头像)',
),
1 =>
array (
'privacy_key' => 'Location',
'privacy_desc' => '位置信息',
),
2 =>
array (
'privacy_key' => 'Address',
'privacy_desc' => '地址',
),
3 =>
array (
'privacy_key' => 'Invoice',
'privacy_desc' => '发票信息',
),
4 =>
array (
'privacy_key' => 'RunData',
'privacy_desc' => '微信运动数据',
),
5 =>
array (
'privacy_key' => 'Record',
'privacy_desc' => '麦克风',
),
6 =>
array (
'privacy_key' => 'Album',
'privacy_desc' => '选中的照片或视频信息',
),
7 =>
array (
'privacy_key' => 'Camera',
'privacy_desc' => '摄像头',
),
8 =>
array (
'privacy_key' => 'PhoneNumber',
'privacy_desc' => '手机号',
),
9 =>
array (
'privacy_key' => 'Contact',
'privacy_desc' => '通讯录(仅写入)权限',
),
10 =>
array (
'privacy_key' => 'DeviceInfo',
'privacy_desc' => '设备信息',
),
11 =>
array (
'privacy_key' => 'EXIDNumber',
'privacy_desc' => '身份证号码',
),
12 =>
array (
'privacy_key' => 'EXOrderInfo',
'privacy_desc' => '订单信息',
),
13 =>
array (
'privacy_key' => 'EXUserPublishContent',
'privacy_desc' => '发布内容',
),
14 =>
array (
'privacy_key' => 'EXUserFollowAcct',
'privacy_desc' => '所关注账号',
),
15 =>
array (
'privacy_key' => 'EXUserOpLog',
'privacy_desc' => '操作日志',
),
16 =>
array (
'privacy_key' => 'AlbumWriteOnly',
'privacy_desc' => '相册(仅写入)权限',
),
17 =>
array (
'privacy_key' => 'LicensePlate',
'privacy_desc' => '车牌号',
),
18 =>
array (
'privacy_key' => 'BlueTooth',
'privacy_desc' => '蓝牙',
),
19 =>
array (
'privacy_key' => 'CalendarWriteOnly',
'privacy_desc' => '日历(仅写入)权限',
),
20 =>
array (
'privacy_key' => 'Email',
'privacy_desc' => '邮箱',
),
21 =>
array (
'privacy_key' => 'MessageFile',
'privacy_desc' => '选中的文件',
),
22 =>
array (
'privacy_key' => 'ChooseLocation',
'privacy_desc' => '选择的位置信息',
),
23 =>
array (
'privacy_key' => 'Accelerometer',
'privacy_desc' => '加速传感器',
),
24 =>
array (
'privacy_key' => 'Compass',
'privacy_desc' => '磁场传感器',
),
25 =>
array (
'privacy_key' => 'DeviceMotion',
'privacy_desc' => '方向传感器',
),
26 =>
array (
'privacy_key' => 'Gyroscope',
'privacy_desc' => '陀螺仪传感器',
),
27 =>
array (
'privacy_key' => 'Clipboard',
'privacy_desc' => '剪切板',
),
),
),
'sdk_privacy_info_list' =>
array (
),
)
你好,获取的时候查询的是哪一个版本的?开发版还是现网版?或者请重新完善隐私项配置,配置用户隐私项后重新提审,并发布一次小程序。
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/product/privacy_setting.html 建议参考步骤执行:提交代码--->稍等(若小程序是首次提审代码后台需要些时间检测)--->get接口看下需要补什么信息---->set隐私---->提交审核---->提交发布 注意:小程序用户隐私保护指引项的说明需要有准确、清晰的使用场景、目的
array(2) { ["errcode"]=> int(0) ["errmsg"]=> string(2) "ok" }