getLocation API 更新之后公众号网页怎么办
发布于 5 年前 作者 yan67 3322 次浏览 来自 问答

小程序加上

 "permission": {    "scope.userLocation": {      "desc": "你的位置信息将用于小程序位置接口的效果展示"
    }
  }

就行了 但是小程序内嵌的h5 调用jsapi

 wx.config({                    debug: false,                    timestamp: weixin_api.timestamp, // 必填,生成签名的时间戳                    nonceStr: weixin_api.noncestr, // 必填,生成签名的随机串                    signature: weixin_api.signature,// 必填,签名,见附录1                    appId: weixin_api.appid,        // 必填,小程序的唯一标识                    jsApiList: [‘getLocation’, ‘openLocation’] // 必填,需要使用的JS接口列表                }); 这里面如何配置啊 因为今天发现报错了 getLocation:fail, the permission value is offline verifying” 和这个有关系吗

1 回复

实测没问题

回到顶部