Push ways:
- SMS Push (third party)
- Push mail
- Micro-channel push
- Public number: certified public number (personal certification number can only be made public an article a day), fans can chat with the public number,
- No unauthorized public
- Service Number: enterprise certification (business license), sandbox test environment
- Initiative to give the user a message (push), the user receives a push message to the premise is the need to focus on the job corresponding to the service number
- Enterprise
- Small micro-channel program
- Public number: certified public number (personal certification number can only be made public an article a day), fans can chat with the public number,
Push flow micro-channel:
Micro letter sandbox environment: http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login
Use pycharm push open the micro-channel demo, and related modifications (Download)
settings.py configuration file to modify test parameters:
Then the edited project code file is deployed to the server, you can run up and tested!
Process analysis:
① users to log in to my system, scan code concerned about my service number (sandbox test environment to provide test number two-dimensional code), users also need attention after the callback authorized to be considered binding with my system
② allows users to bind with my system:
Login authentication decorator
After the two-dimensional code sweep generated authorization code is successful, it will automatically jump to the callback routing link
Click Continue to visit, get results callback callback function returned to the phone and render html page
Push messages to the user function
Usage scenarios, public Publication article number to provide public services to purchase, the user buy success, when the public needs to take the initiative to contact the number of users will need to focus on user numbers and the public has been authorized to send the message that the push message
routing:
Form template push message
Simple push to achieve single-user information about the features, where the need to think about further
Original link: https://www.cnblogs.com/suguangti/p/11170632.html