A very good lottery system, uniapp framework, front-end and back-end separation, back-end, proxy, mobile H5
There is uniapp front-end source code, which can be used for secondary development
Game list
There are about fifty lottery games built in, basically all of them are Kuaisan lottery, but there are also other lottery games, such as: Shishicai, Kuailecai, Racing Airship PK10, Mark Six Lottery, 11 Pick 5 and so on.
The background can control the killing, preset the lottery results in advance, modify the lottery content, etc.
Building Tutorial
It is not an ordinary PHP lottery system, and it is a bit difficult to build.
PHP8.0MySQL5.6PHP opens extensions: redis, Swoole, and disables all functions
If you encounter a situation where there is no gameplay
0_db_20230130_001430.rdb Create a new redis folder in the database directory and put the file in to restore the redis cache
Or execute the key-value pairs in the tutorial in the redis database
Terminal root directory execution
php think watching
php think watching start
php think import start
api add 127.0.0.4
Background configuration file
location ~/(control|storage) {
# Change here to the IP and port of the socket.io backend
proxy_pass http://127.0.0.4;
proxy_set_header XIp $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;}
Front
location ~/(dock|storage) {
# Change here to the IP and port of the socket.io backend
proxy_pass http://127.0.0.4;
proxy_set_header XIp $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;}
proxy
location ~/(invite|storage) {
# Change here to the IP and port of the socket.io backend
proxy_pass http://127.0.0.4;
proxy_set_header XIp $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;}