问题
之前写好的登录页面,今天一打开发现没有弹出授权登录框,还以为代码出现什么bug了,经过一番检查,代码没啥问题,百度一番,发现授权登录更新了,原来的getUserInfo用不了,要使用getUserProfile
解决方案
更新说明链接:https://developers.weixin.qq.com/community/develop/doc/0002c2622303801b1fc8c189b56000
文档链接:
https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserProfile.html#%E7%A4%BA%E4%BE%8B%E4%BB%A3%E7%A0%81