报错信息:The given payload is invalid.
报错原因:小程序调用wx.login和wx.getUserProfile的顺序不对导致,才导致后端解密验证失败。
解决: 先调用wx.login,再调用wx.getUserProfile