小程序关联微信公众号如何确定用户的唯一性

千锋教育

使用 wx.getUserInfo方法 withCredentials 为 true 时 可获取 <encryptedData,里面有 union_id。后端需要进行对称解密