# 积趣商城 ## Require - php >= 8.1 - php 函数: `putenv`, `proc_open`, `symlink` - php 扩展: `fileinfo` ## Step - `composer install` - `cp .env.example .env`, 并修改配置文件 - `php artisan migrate --seed` - `php artisan storage:link` - `bootstrap/cache`, `storage` 目录 需要写入权限 ## 定时任务 [Liux:supervisor] - 自动取消未支付的订单: `php artisan order:close-expired` - 自动完成待收货的订单: `php artisan order:complete` - 生成订单的提成记录: `php artisan order:distribute` - 发放优惠券: `php artisan admin-work:send-coupon` - 自动发放订单提成: `php artisan order:profit` ## 支付佣金提成 - 微信企业付款: 登录微信商户号 -> 选择产品中心 -> 企业付款 -> 付款发起方式 -> 配置服务器外网IP - 订单售后期结束后, 通过定时任务 `php artisan order:profit`, 自动发放 - 后台 `订单管理-提成管理` 可手动发放