微信小程序获取手机号报BadPaddingException: Given final block not properly padded. Such issues can 解决办法
微信小程序获取手机号报BadPaddingException: Given final block not properly padded. Such issues can 解决办法 1. 原因是code被使用了2次一. 解决办法就是先获取 wx.login获取code去后台换取session_key和openid前端代码var that = this; wx.login({ success(res) { console.log(res);