企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
进入宝塔控制面板\-----计划任务  填写计划任务 ![](https://img.kancloud.cn/14/bf/14bf030f5eac67481af0489b75843710_1044x518.png) **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 ~~~ ![](https://img.kancloud.cn/23/f1/23f10910bbae8c4ddc57eb178ab63ca8_1144x599.png) 如果出现以下错误,是由于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 ~~~ 修复方法: ![](https://img.kancloud.cn/45/1d/451db2756aabefae7974788078902359_1746x690.png)