![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot+微信小程序
文章平均质量分 92
mengdi_cao
这个作者很懒,什么都没留下…
展开
-
SpringBoot整合微信小程序(二)获取地理位置,MySql存储
1、微信小程序获取GeometryJSON格式的地理位置1.1、获取用户授权在app.json中加入地理位置授权1.2、刷新地理位置工具js获取地理位置,参照一片博客,单独写了一个工具jsmodule.exports = { refreshUserLocation: refreshUserLocation, getLocation:getLocation}function refreshUserLocation(callback) { wx.getSetting({原创 2020-11-23 11:06:39 · 1100 阅读 · 0 评论 -
SpringBoot调用微信小程序(一)auth.code2Session接口,获取用户信息用户登录
最近公司开发微信小程序,整理一下后端springboot调用微信小程序接口1、auth.code2Session查看微信开放文档,传入参数主要有四个,其中grant_type值是固定的。appid和secret都是微信小程序开发者信息。可以自行注册,我们学习的时候可以通过测试号获取。2、springboot代码2.1将appid和secret写入application.yml配置文件...原创 2020-11-19 10:44:06 · 9480 阅读 · 5 评论