the given payload is invalid

报错信息:The given payload is invalid.

报错原因:小程序调用wx.login和wx.getUserProfile的顺序不对导致,才导致后端解密验证失败。 

解决: 先调用wx.login,再调用wx.getUserProfile

posted @ 2022-09-23 17:11  云里知音  阅读(1368)  评论(0编辑  收藏  举报