The latest lottery platform source code, uniapp source code, instant lottery platform system construction one-stop
The front-end and back-end are separated, and the uniapp front-end source code is available for secondary development
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.
It is not an ordinary PHP lottery system. The front end needs to be compiled before running.
Operating environment:
Baota control panel, nginx1.2, PHP8.0, MySQL5.6, PHP extensions enabled: redis, Swoole, all functions disabled
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;
}