Now we want to develop a lottery activity system: Scan the QR code to draw a lottery (use the QR code as a link to jump to). If the lottery is a red envelope, do not follow it and jump to the Follow Guide page, after paying attention, you can directly send a red packet to the user (how can this be achieved, stuck here). now you need to develop a lottery activity system:
Scan the QR code to draw a lottery (use the QR code as a link to jump)
If you are using a red envelope, do not jump to the follow boot page, and then directly send a red envelope to the user (how can this be achieved, stuck here)
Reply content:
Now we need to develop a lottery activity system:
Scan the QR code to draw a lottery (use the QR code as a link to jump)
If you are using a red envelope, do not jump to the follow boot page, and then directly send a red envelope to the user (how can this be achieved, stuck here)
1. on the lucky draw page, use web page authorization to obtain the openid of the lucky draw user;
2. the lottery result is written into the openid record. if the prize is a red packet and you have already paid attention to calling the red packet sending interface directly, you are not charged as "not paying attention to the red packet 』.
3. check whether the user pays attention to the event and check whether the user of the openid has the status of "not sending a red envelope". if yes, send a red envelope and clear the status of "not sending a red envelope.