收藏
回答

小程序调用wx.getLocation接口报​隐私协议声明缺失的错误是怎么回事?

报错内容是:getLocation:fail api scope is not declared in the privacy agreement

小程序appID:wx5b352dc68e2ff961

我们是服务商,给这个客户小程序使用wx.getLocation后,调用报错,这个小程序后台已经申请开通了wx.getLocation,也设置隐私了,在ext_json里也声明了wx.getLocation权限

更新etx.json文件的

{"user_version":"V4.0.7","user_desc":"辰星云4.0 分支:open/master hash:d3a7e507 上传时间:2025年07月03日14:21 用户:gaoningning","ext_json":"{\"extAppid\":\"wx5b352dc68e2ff961\",\"ext\":{},\"window\":{},\"requiredPrivateInfos\":[\"getLocation\", \"chooseLocation\"]}","template_id":194}

{"errorCode":0,"errorMsg":"ok","success":true}

小程序调用wx.getLocation的时间  2025-07-08 17:11:20


昨天之前都是正常的昨天和今天都有问题,是有什么政策变化吗?

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容