收藏
回答

为什么企业微信打开小程序wx.getSetting必现fail?

代码

<view class="position" bindtap="xxx">

xxx(){
  wx.getSetting({
    success: (res) => {
        var statu = res.authSetting;
        if (!statu['scope.userLocation']) {
            // 没授权
            logger.log('goSelectMall reject');
            log.error('getSetting fail1',JSON.stringify(res));
            wx.showToast({
                title: ''+JSON.stringify(res),
            },5000);
        } else {
  }
...


iphone x iOS 15.1必现, 其它安卓手机也必现,从今天早上开始出现,普通微信没有问题

报错信息如下:

{"errMsg":"getSetting:ok","clientInfo":{"wxdataQueueTimestamp":1643265172385,"isConfirm":false,"wxlibCallbackTimestamp":1643265172836,"beginCGITimestamp":1643265172387,"queueLength":0,"beginCGITimestampAfterConfirm":18446744073709552000,"wxdataDequeueTimestamp":1643265172387,"CGICallbackTimestampAfterConfirm":18446744073709552000,"CGICallbackTimestamp":1643265172834},"authSetting":{"scope.werun":true,"scope.address":true,"scope.invoice":true,"scope.invoiceTitle":true}}

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

1 个回答

  • 颜小雅🍬
    颜小雅🍬
    2022-06-16

    楼主解决了吗

    2022-06-16
    有用
    回复
登录 后发表内容