1 回复
可以看看这个 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/login.html
一般思路是,wx.login 获取 code,code 传递给服务器,服务器拿到用户的openID,我们可以根据openId生成userId
可以看看这个 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/login.html
一般思路是,wx.login 获取 code,code 传递给服务器,服务器拿到用户的openID,我们可以根据openId生成userId