注:文档地址:https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html
一、 添加配置
#微信相关配置wx:appid: wxf00c8b473509a848appsecret: 8496373784b34631d0ab08e9eeab7f9bredirectUrl: http://yhh.natapp1.cc/member/api/v1/callBackuserAuthUrl: https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_userinfo&state=%s#wechat_redirectaccessTokenUrl: https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_codeuserInfoUrl: https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s&lang=zh_CN
二、 添加回调方法
三、 获取配置
四、 添加HTTP请求工具类
五、 添加微信服务调用API接口
六、 添加微信服务实现

