SparkShop定时任务的开启【重要】

    打开已经安装的 Supervisor

    输入命令

    php think crontab start

    这个启动主要用户系统内定时任务的执行,打开系统的定时任务,可见定时任务即可

    上述是通过数据库操作的,见数据库定时器任务表crontab_task:

    订单超时检测:php think orderTimer

    自动收货:php think autoReceive

    自动好评:php think autoAppraise

    分销结算检测:php think autoSettlement

    秒杀超时关闭:php think seckillOverTime

    除此之外,可以借助于宝塔的计划任务

    微信截图_20250507084632.jpg

    输入脚本

    cd /www/wwwroot/sparkshop源码目录 && env -i /www/server/php/80/bin/php think crontab start

    其中/www/server/php/80/bin/php要改成自己实际的php路径,一般是通过 which php 命令查看路径,查找php路径:

    ls -l /www/server/php/*/bin/php