Wechat applet calls wechat login to obtain openid and Java as server examples
•
Java
1、 Wechat applet step 1: call Wx Login to get the code document address step 2: judge whether the user is authorized to read the user information document address step 3: call Wx GetUserInfo reads the address of the user data document step 4: since the background authorized domain name of the applet cannot authorize the domain name of wechat, we can only call the wechat server through our own server to obtain user information, so we will Wx Login to get code and Wx The encrypteddata obtained by getUserInfo and IV pass through Wx Request incoming background
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码
