获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
你好,这个问题解决了嘛
wx.chooseLocation 无法正常调用?我在调用wx.chooseLocation的时候,新用户(或者最近使用的小程序中删除也有同样的效果)访问,第一次发起userLocation授权,同意授权结束后,无法紧接着调用wx.chooseLocation(隐私已经提交更新,接口已申请),提示 {errMsg: "chooseLocation:fail api scope is not declared in the privacy agreement", errno: 112} 这个时候只需要关闭小程序重新打开小程序,就可以正常调用wx.chooseLocation。 代码片段如下: wx.authorize({ scope: 'scope.userLocation', success(res) { console.log(res); wx.chooseLocation({ success: function (res) { //业务代码 }, fail:function(res){ console.log(res) } }); }, [图片]
08-22