查询接口 :https://api.weixin.qq.com/cgi-bin/component/getprivacysetting 响应结果如下: 小程序appid:wxd607c18def990013 privacyVer参数:2 { "message": "成功", "status": 200, "data": { "errcode": 0, "errmsg": "ok", "code_exist": 1, "privacy_list": [ "UserInfo", "Location", "Album", "MessageFile" ], "setting_list": [ { "privacy_key": "UserInfo", "privacy_text": "", "privacy_label": "" }, { "privacy_key": "Location", "privacy_text": "", "privacy_label": "" }, { "privacy_key": "Album", "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": "" }, "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": "选中的文件" } ] } } }
调用/cgi-bin/component/getprivacysetting无效问题?问题描述:我使用接口调用了/cgi-bin/component/getprivacysetting设置小程序用户隐私保护指引后,微信给我返回成功。但是我再调用 /cgi-bin/component/getprivacysetting查询的时候,privacy_text 一直为空。根据文档上说明:privacy_text为空就是没有设置成功 ,我重复校对了参数,以及接口,没有发现问题。微信给我返回的也是成功的标致!!重复提交审核都是说 “内容中有涉及收集用户信息的组件” 导致一直审核不成功,麻烦大家看一下。 小程序appId : wxd607c18def990013 调用接口:https://api.weixin.qq.com/cgi-bin/component/getprivacysetting 设置小程序用户隐私保护接口起请求参数: { "owner_setting":{ "notice_method":"notice_method" }, "setting_list":[ { "privacy_key":"UserInfo", "privacy_text":"提供更好的用户体验" }, { "privacy_key":"Location", "privacy_text":"更好的提供本地服务" }, { "privacy_key":"Album", "privacy_text":"更改用户个性化设置" }, { "privacy_key":"MessageFile", "privacy_text":"让用户提供必要的资料信息" } ], "privacy_ver":2 } 设置小程序用户隐私保护接口起返回参数: { "message": "成功", "status": 200, "data": { "errcode": 0, "errmsg": "ok", "code_exist": 1, "privacy_list": [ "UserInfo", "Location", "Album", "MessageFile" ], "setting_list": [ { "privacy_key": "UserInfo", "privacy_text": "", "privacy_label": "" }, { "privacy_key": "Location", "privacy_text": "", "privacy_label": "" }, { "privacy_key": "Album", "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": "" }, "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_text 字段一直为空,无法设置成功!!!!
2021-12-141.文档中是有 注明:是用公众号的appid来换取token,但是这个回调除了有一个票据ticket以外什么都没有了啊?我在哪里获取到这个appid。 2.就算获取到了公众号的appid只有appid也没有办法获取到token啊 麻烦解答一下,这个流程是什么样的?
公众号复用注册小程序回调问题?公众号管理人员扫码授权注册时,会回调这个方法 [图片] 但问题是:回调redirect_uri,这里只给我返回了个ticket, 我这个回调函数是个公共方法,方法里面,根本没有appid,所以更不知道怎么获取token,那之后我咋获取注册的小程序的appid呢? 那我可以在redirect_uri里面加个appid么?比如这样:callback/ticket?appid=wx2244941b648d2888&from=mp 那这样当回调时,我就知道取哪个appid,然后获取对应的token了,但客服说,不能加参数,回调url是固定的, 那请问,怎么处理呢
2021-09-01