XICI's new feature: XICI Lottery Machine
Comment | 0ViewIt took me about half a month to develope XICI’s own lottery featrue. Administrator can configure and publish lottery event in the back-end now, and the event will be drawed automatically.
Database and all the logic are built upon Minapp Cloud which is a BaaS platform I mentioned before. This time I used trigger to build cron task and used cloud function to implement automatically drawing. That features are new to me this time but there are not so difficult to solve with the documentations.
I was inspired by a wechat mini game and implement the inspiration to this feature as a experiment.
The Lottery Machine can draw based on users’ location (accurate to Province). That is an idea based on we can provide more accurate way to the locale movie theaters. But it will take some time to get the right cooperation.
It also took me another half a month to do the test. I release it after I think everythink is ready and OK. I thought every situation was in consideration but I was so naive: after release on last night, some users’ point was high to 300 by watching so many video ads. That’s insane! I never thought about a user would watch that amount of ads in a day! Now I’m afarid I’m going to get some punishments by Wechat. I will take that as a lesson and fixed that as a bug before next event launched.
If you are interested in what I’ve done in this feature, feel free to use your wechat to scan this poster:
Hope you enjoy.
- Blog Link: https://blog.decay.fun/en/2019/08/24/xicis-new-feature-xici-lottery-machine/
- Copyright Declaration: The author owns the copyright. Please indicate the source reproduced!
Share用中文浏览本文