After authorization of the WeChat public account, click the Continue to visit button to investigate and analyze
1. Open the link in WeChat, and apply for the public account: get your nickname and avatar, and click the Allow button. as shown in Figure 1
2. After the WeChat public account is authorized, the page may not be provided by WeChat, and WeChat cannot ensure the security of the content. If you want to continue to visit, please pay attention to protect your personal information. Click the Continue to access button and there is no response. as shown in Figure 2
3. Check the settings of the public account, and the website authorizes the domain name, there is no problem. as shown in Figure 3
4. Click on the upper right corner… to open it in the browser. as shown in Figure 4
5. Click the Continue to visit button in the browser, and the security warning will pop up. There is a problem with the security certificate of this website. Click Continue. as shown in Figure 5
6. The access in the browser is successful. as shown in Figure 6
7. Use WeChat to scan the QR code corresponding to the link. as shown in Figure 7
8. Open the blank after finding the code. But there is a corresponding request log in the nginx log. as shown in Figure 8
9. But there is a corresponding request log in the nginx log. The request URL is the value of redirect_uri. The response status code is 500. as shown in Figure 9
{"request":{"headers":{"referer":"-","host":"morefun.webtv.xxx.cn","x-request-id":"8f7867 EAFED70458126B8451FA701860","X-Forwarded-For ":"101.207.139.251","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, Like Gecko) Chrome/92.0.4515.131 safari/537.36"},"method":"get","uri":"/wechat/activities/?id =A4676E-ACDD-4213-BB46-99FCB30327FD&GROUP_ID=3B592C75EE 1974509679E28EC2B4FCE4","URL":"http://morefun.webtv.xxx.cn/we Chat/Activities/?ID=A4676E6E-ACDD-4213-BB46-99FCB30327FD& group_id=3b592c75ee1974509679e28ec2b4fce4","@timestamp":"2021 -10-28t19:51:38+08:00","upstreamaddr":"127.0.0.1:9000","respo NSE":{"responseTime":"1.715","upstream_response_time":"1.714" },"size":"40924","status":"500","module_name":"default-app"}}
10. Open the jump URL directly in the browser, and the response is 500. The reason is that the code parameter is missing. As shown in Figure 10
authorize failed:
{
"errcode": 41008,
"errmsg": "Missing code, Rid: 617a8ec9-02397612-437533f9"
}
11. Open the link in the browser, analyze the request parameters, and find that the value of redirect_uri has changed.
request url: https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx9dbacb0dd5847fc4&redirect _URI=https%3a%2f%2fmorefun.webtv.xxx.cn%2fwec Hat%2Factivities%2F%3FID%3DA4676E6E-ACDD-4213 -BB46-99FCB30327FD%26Group_ID%3D3B592C75EE19 74509679e28ec2b4fce4&response_type=code&a mp;scope=snsapi_userinfo&state=47fc4bd999d70f7f8239b6264ec4be32&connect_redirect=1 Request method: get AppID: wx9dBacb0dd5847fc4 redirect_uri: https://morefun.webtv.xxx.cn/wechat/activities/?id=a4676e6e-acdd-4 213-BB46-99FCB30327FD&GROUP_ID=3B592C75EE1974509679E28EC2B4FCE4 Response_type: code Scope: SNSAPI_UserInfo State: 47fc4bd999d7f7f8239b6264ec4be32 connect_redirect: 1
12. JS interface security domain name, add: morefun.webtv.xxx.cn. as shown in Figure 11
13. Prioritize the problem of certificates, and replace the HTTPS protocol of redirect_uri with the http protocol. Click the Continue Access button to jump to the address of REDIRECT_URI. Remarks: The protocol in the link cannot be directly replaced here, and you need to enter from a new authorization. as shown in Figure 12
14. Use WeChat to scan the QR code corresponding to the link. After scanning the code, it can also be opened successfully, no longer blank.
15. Summary: After authorization of the WeChat public account, click the Continue to access button. The reason is that there is a problem with the security certificate of the website. If the certificate problem cannot be solved, you can replace the https protocol with the http protocol.











