永恒骑士 小程序服务器列表空,微信小程序一键登录应用服务器通过AES解密返回purePhoneNumber为空?…

  • Post author:
  • Post category:小程序


通过后台日志 小程序将用信息传入后台 后台偶现通过AES解密用户信息获取phoneNumber与purePhoneNumber为空。下面附上正常与异常的日志。

正常:

微信登录开始…info = {“code”:”081eBHkl2upRp64g5vnl2SxnYc1eBHkN”,”data”:”CyBm8gDjc07v47DSSdQtGmnu7PL3rMSHHV8Pc61tVtxUuEB7P4DWcVAXj1cBhPnq7Bau3Eav3TwMIXIC+g+XkEF2pSGZOREyfe7kGCbaSg0NDFikBuT997/rlG9GmtXvdXvDWdCSsIfzyWA6c/MgpJjBGzL58lQbPdSx0NFNHDBjuemILGN5ku+I6mlhk/VwO27OScBvqKqDHhw6Cor9XA==”,”deviceType”:”miniProgram”,”iv”:”4JwCLb7Gjj27c2ZV+5fGhw==”,”loginLatitude”:31.746186,”loginLongitude”:117.287757,”loginType”:”1″}

根据code请求微信,获取结果 …jsonObject={“unionid”:”ogOQDxPCMEs6P0OjcjhQQxlKVz6w”,”openid”:”oEKHx0JoklN5UBshPeQF0AvabNdY”,”session_key”:”9XH09jE644dQj1qV2VHoXA==”,”expires_in”:7200}

AES解密用户信息 …decrypt={“phoneNumber”:”15156152616″,”purePhoneNumber”:”15156152616″,”countryCode”:”86″,”watermark”:{“timestamp”:1611884346,”appid”:”wx4f0f106eaa4b5eab”}}

异常:

微信登录开始…info = {“code”:”0113nqFa1nlXpA0OAqGa1GIot523nqF1″,”data”:”zMlA8VGkZLGM+xWyfGsqBKX8ld6JXgHVDtOSdDLq8JHYC2qCHTZCY5trz+W3ZuL7dX2YSlAPhTPUKE1a/twGIVbgUAm3F5pKLlHuZW90kT2ZFBKi+8B4qEo09ugq4Xdig1xq+3lhbd5Hf6tge9fe8sUWIiKtzpALnFgwBf+UgeI=”,”deviceType”:”miniProgram”,”iv”:”yJ/IRC8A7pyeDodDMj9/7A==”,”loginLatitude”:23.130061,”loginLongitude”:113.264499,”loginType”:”1″}

根据code请求微信,获取结果 …jsonObject={“unionid”:”ogOQDxEEBbRXgTw-qqzxL4oZAZ_c”,”openid”:”oEKHx0IVx4lCrqLAxnbz-TykPoBI”,”session_key”:”GwO0A5ObmRt5VjpSvzFktA==”,”expires_in”:7200}

AES解密用户信息 …decrypt={“phoneNumber”:””,”purePhoneNumber”:””,”countryCode”:””,”watermark”:{“timestamp”:1611869618,”appid”:”wx4f0f106eaa4b5eab”}}

发现异常信息中phoneNumber与purePhoneNumber都为空 导致用户登录失败