获取用户位置信息

https://developers.weixin.qq.com/miniprogram/dev/framework/config.html#全局配置

获取用户位置信息需要在 game.json 配置这个,那在cocos的话是要在哪配置?每次构建发布都会被覆盖。

项目文件夹下新建build-templates/wechatgame/,把game.json拷进去,以后打包完都会自动用这个覆盖,详情可以参考文档自定义构建流程嗷

https://docs.cocos.com/creator/manual/zh/publish/custom-project-build-template.html?h=构建 给你张飞机票

已解决 :grin: