WeChat applet decrypts mobile phone number + user id cannot be obtained

This link has a detailed introduction https://github.com/w7corp/easywechat/issues/1312
This link can also see the detailed process of obtaining a mobile phone number authorized by the WeChat applet, and go to the background by yourself: https://www.cnblogs.com /mica/p/10550840.html The
old text is lazy, and the front-end parameters must be correct. What are the pitfalls encountered? The front-end is correct, but the id is not passed when the secret is passed to the api, which causes the database to find no relevant information. It is fine to pass the id directly here.
This is to solve the problem of back-end decryption, it seems that $this->pkcs7Unpad() does not report an error here
But I encountered the problem that the id was not passed.
It’s a bit contradictory to pass back the id passed in the past, but it ran through
Just pass in one by one here

Guess you like

Origin blog.csdn.net/weixin_43018356/article/details/110496725