位置授权失败

发布于 6 年前作者 juan9413786 次浏览最后编辑 6 年前来自 ask

项目需要选择地理位置,使用api:

wx.authorize({

    scope: ‘scope.userLocation’,

直接进失败的回调,错误信息为"authorize fail invalid scope"

2 回复
yli
yli1 楼6 年前

麻烦提供一下 appId

taowei
taowei2 楼5 年前

麻烦提供一下出现问题的机型和微信版本,并且给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题