WeChat QR code scanning for red packets

Source: Internet
Author: User
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:

  1. Scan the QR code to draw a lottery (use the QR code as a link to jump)

  2. 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:

  1. Scan the QR code to draw a lottery (use the QR code as a link to jump)

  2. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.