Development scenario: Author's homepage: skyapp studio home. zhubajie. com7145093 needs to guide users on the public platform to click the link to enter the registration page. The user's openid needs to be obtained on the registration page. The core technology is to use web page authorization and get openid immediately through js when authorization code is obtained. After web page authorization
Development scenario: author Home Page: skyapp studio http://home.zhubajie.com/7145093/ needs to guide the public platform users click the link to enter the registration page, in the registration page needs to get the user's openid. The core technology is to use web page authorization and get openid immediately through js when authorization code is obtained. After web page authorization
Development scenario:
Author homepage: skysky app studio http://home.zhubajie.com/7145093/
You need to instruct the public platform users to click the link to enter the registration page. On the registration page, you need to obtain the user's openid. The core technology is to use web page authorization and get openid immediately through js when authorization code is obtained.
Most of the articles on the Internet about how to obtain openid step by step after webpage authorization are explained in theoretical steps. There is very little content on How to Get openid as quickly as possible on the code. I am very angry and decided to write down the code and share it with you.
This process requires a front-end Page code and a backend Helper Program. Here, the front-end is html + js and the back-end is php.
Directly go to the Code, and the annotations in the Code are clear:
Front-end: index.html
Member registration