进入宝塔控制面板—–计划任务  填写计划任务
发卡网定时任务怎么设置

1.解冻任务 设置时间每小时第2分钟 执行

cd /www/wwwroot/您的网站目录
php think UnfreezeMoney

2.提现任务 设置时间每小时第5分钟 执行

cd /www/wwwroot/您的网站目录
php think AutoCash

3.3天没有支付的订单视为无效 建议执行时间为 1天一次

cd /www/wwwroot/您的网站目录
php think AutoClearExpireOrder

4.自动清理删除超过十五天的商品 建议执行时间1天一次

cd /www/wwwroot/您的网站目录
php think AutoEmptyGoodsTrash

发卡网定时任务怎么设置

如果出现以下错误,是由于PHP版本错误

PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /网站路径/application/home/command/UnfreezeMoney.php on line 20

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /网站路径/application/home/command/UnfreezeMoney.php on line 20
                                                                                                         
  [think\exception\ErrorException]                                                                                    
  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$'  
                                                                                                                     
Exception trace:
 () at /网站路径/application/home/command/UnfreezeMoney.php:20
 think\Error::appShutdown() at n/a:n/a

修复方法:
发卡网定时任务怎么设置