
1. Environment:
Nginx 1.20.2
MySQL 5.6.50
PHP-5.6
phpMyAdmin 4.4
2. Install php extensions:
ZendGuardLoader
Redis
Redis has no password set, default port 6379
Remember to restart php after installation to allow the extension to take effect.
After adding the domain name, the running directory points to Public Set pseudo-static to thinkPHP default pseudo-static or copy the pseudo-static content below to fill in, and the Nginx pseudo-static rules below are below.
location / {
if (!- e $request_filename){
rewrite ^(.*)$ /index.php? s=$1 last; break;
}
}
Import database: chudaifu.sql
Configure database:
Configure database account password and other contents in/config/database.php
Query API for information such as bank card ownership
Api Register an account at api.Kazhiguo.com and purchase an api verified by the place where the bank card belongs. You can check 20,000 times for 100 yuan
If you don't want to use the API, you can ask merchants to transfer value
bank_name= certain bank in China
You can avoid using API for query and save some API fees.
/Modify:
Modify the api key in the file extend/xuncheng/C43.php
Back-end address: http://domain name/admin/login/index admin 123456
Agent address: http://domain name/agent/login/index
Merchant address: http://domain name/mch/login/index
Api order address: http://domain name/api/pay/createOrder
Api search address: http://Domain Name/api/Query/queryOrder
Balance query address: http://domain name/api/Query/queryBalance
The backend can edit whether the agent has the authority to process orders from merchants below him.
The backend and agent manually operate the payment completion to check the order. Click Synchronous Completion in the upper left corner of the order list. If the order is completed, the system will automatically send a callback to the merchant. (It is not operated at the transfer button at the back of the order)
This code is only used for research, testing, learning and use. It is prohibited for illegal purposes. Otherwise, the consequences will be borne at your own risk. The open source code, author and secondary developers will not bear any responsibility.