代码涉及未配置在app.json的wx.chooseLocation/wx.getLocation接口,发布后将无法使用。
在app.json文件里配置下:
"requiredPrivateInfos":[
"chooseLocation",
"getLocation"
],
具体可参考这个官方公告
https://developers.weixin.qq.com/community/develop/doc/000a02f2c5026891650e7f40351c01