Now we need to develop a WeChat lottery system:
Scan the QR code to realize the lottery (use the QR code to link and jump)
If you win a red envelope, if you don’t follow it, you will be redirected to the follow guide page. After following, red envelopes will be sent directly to the user (how this can be achieved, stuck here)
Now we need to develop a WeChat lottery system:
Scan the QR code to realize the lottery (use the QR code to link and jump)
If you win a red envelope, if you don’t follow it, you will be redirected to the follow guide page. After following, red envelopes will be sent directly to the user (how this can be achieved, stuck here)
1. The lottery page uses WeChat web page authorization to obtain the openid of the lottery user and save it;
2. The lottery result is written into the openid record. If it is a winning red envelope and you have followed it, you will directly call the red envelope sending interface. If you have not followed it, it will be recorded as "Not yet owed the red envelope" hair".
3. WeChat users pay attention to the event and check whether the openid user has "unsent red envelopes". If so, send red envelopes and clear the "unsent red envelopes" status.