mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 23:10:45 +00:00
修复定时任务问题
This commit is contained in:
parent
e4cc54600d
commit
54d6c259de
@ -208,7 +208,7 @@ class SystemCrontabServices extends BaseServices
|
||||
file_put_contents(root_path() . 'runtime/.timer', time()); //检测定时任务是否正常
|
||||
$list = $this->dao->selectList(['is_open' => 1, 'is_del' => 0])->toArray();
|
||||
foreach ($list as $item) {
|
||||
if ($item['next_execution_time'] < $time) {
|
||||
if ($item['next_execution_time'] < time()) {
|
||||
if ($item['mark'] == 'order_cancel') {
|
||||
//未支付自动取消订单
|
||||
app()->make(StoreOrderServices::class)->orderUnpaidCancel();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user