Problem with scanning QR code on WeChat to draw red envelopes

WBOY
Release: 2016-10-17 09:30:12
Original
1426 people have browsed it

Now we need to develop a WeChat lottery system:

  1. Scan the QR code to realize the lottery (use the QR code to link and jump)

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

Reply content:

Now we need to develop a WeChat lottery system:

  1. Scan the QR code to realize the lottery (use the QR code to link and jump)

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

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template