微信小程序最新获取用户接口调整wx.getUserProfile,快速修改方法
1.通过wx.login换取sessionKey的时候将open id和union id同时返回到前端(wx.getUserProfile调整后的结果)
下面的代码是我在小程序中的源代码
1.1) that.$request({.....})是自定义发送请求的方法
1.2) code2session.html是换取sessionKey和open id、union id的接口
接口只返回了sessionId和type
其中sessionId是sessionKey和open id、union id后
原创
2021-04-17 21:26:31 ·
4752 阅读 ·
1 评论