## Key features
*Based on WeChat official account (verified service account), WeChat Pay (WeChat change has been activated)
*After the user enters the event page and enters the correct coupon code and channel code, the platform will automatically issue rewards (WeChat change) to the user
*The PC version of the admin background can view the relevant data, and the coupon code can be imported
*Rules for importing coupon codes:
Use the excle file
Start with the second line of excle
The coupon code is located in column A
After the file is read, the excle file can be written to the system cache
After the error is detected, enter the import password and write it to the database
*Channels can also be regarded as concepts such as employees, provinces and cities, etc., which are used to distinguish user classifications
## Server Deployment
Configure quasi-static try_files $uri $uri/ /index.php?s=$uri&$args;
Create a database
Configure a merchant certificate (in the ./shanghuzhegnshu/ folder)
Turn on php_fileinfo
Configure the .env file
Official account
OFFICIAL_ACCOUNT_DEFAULT_APP_ID=
OFFICIAL_ACCOUNT_DEFAULT_SECRET=
OFFICIAL_ACCOUNT_DEFAULT_TOKEN=
OFFICIAL_ACCOUNT_DEFAULT_AES_KEY=
OFFICIAL_ACCOUNT_DEFAULT_AUTH= // This can be empty
WeChat Pay
WECHAT_PAYMENT_APP_ID=
WECHAT_PAYMENT_MERCHANT_ID=
WECHAT_PAYMENT_KEY=
WECHAT_PAYMENT_CERT_PATH=/www/wwwroot/www.xxx.com/shanghuzhegnshu/apiclient_cert.pem
WECHAT_PAYMENT_KEY_PATH=/www/wwwroot/www.xxx.com/shanghuzhegnshu/apiclient_key.pem
WECHAT_PAYMENT_NOTIFY_URL=http://www.xxx.com/jcqz/huidiao
Configure the WeChat service account (authenticated) to obtain the openID of the user when he opens the mobile phone page
Activate the WeChat Pay merchant platform, enable the enterprise payment to change function, and configure keys and certificates
If you have any questions, please contact customer service QQ: 908065559