WeChat Authorized Login Source Code WeChat Official Account Follow Authorized Login Scan Code Follow WeChat Official Account Authorized Login

Source code introduction:
PHP WeChat scan code to follow the official account and authorize login source code PHP WeChat scan code login looks simple, but it is a bit cumbersome to do, and a lot of time will be wasted in development.

PHP judges whether to follow the official account for the first time, and scans the code to follow the official account to obtain information source codes such as WeChat user avatar, openid, and provinces and cities.

Step 1: Obtain the attention QR code ticket, and pass the primary key id of the QR code qrcode table

Step 2: WeChat server accepts data and user login information

Step 3: Check every 2 seconds whether you follow the WeChat official account. Obtain WeChat user information through WeChat openid and access_token, and store the information in the table. If the information is not obtained, remember to open curl, check the firewall, and enable the WeChat server IP whitelist set up

PHP scan code to follow the official account update log

1. Fix bugs caused by server configuration

2. Fix the failure to obtain user information for the first follow-up (due to changes in the WeChat interface)

3. Add debugging error information, for example, because curl is not enabled, or SSL certificate appears when accessing Tencent https: unable to get local issuer certificate

4. Cancel the verification of https by Tencent remote curl

download link


Network disk source    password: 3lev

Screenshot of the source code:

Guess you like

Origin blog.csdn.net/weixin_45892228/article/details/132693438