authorize:fail invalid scope

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

获取authorize:fail invalid scope的权限时返回"authorize:fail invalid scope",而其他权限没有问题,求解决

3 回复
panxiulan
panxiulan1 楼6 年前

你好,目前问题没有复现,麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题

pingma
pingma3 楼4 年前

wx.getSetting({

     success: res => {

       wx.authorize({

         scope: ‘scope.userLocation’,

         success: (res) => {

           console.log(res);

         },

         fail: (res) => {

           console.log(res);

         }

       })

       console.log(res);

     }

   })

 }

别的scope是成功的