WeChat public account development, scanning QR code event push missing parameters problem

Demand scenario:
Each user has his or her own promotion QR code. Share their own promotion QR code. After others scan the code, they will be redirected to follow the official account. After following, they will be bound. Referral relationship.
Technical points used:
1. Generate QR code with parameters
Insert image description here
Insert image description here
Insert image description here

2. Receive event push. There are two main events: following and scanning parameter QR codes. Tencent will push the parameters we originally bound to the server link we configured. By obtaining this parameter, we can handle the subsequent user promotion relationship binding issues.
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here

Because after the server configuration is opened in the backend of the public account, the previous custom menu will become invalid. Therefore, it is necessary to develop a custom menu or personalized menu according to the actual situation
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
Insert image description here
I am a public account The account has been developed for many years, and there are many such needs. I will share the summary, hoping to help newcomers! If you have any questions, you can also contact me to learn and discuss with each other

Guess you like

Origin blog.csdn.net/weixin_39105981/article/details/122879540