mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update sys.php
This commit is contained in:
parent
20f56f2200
commit
da666da9ab
@ -27,7 +27,8 @@ app()->event->listen('HttpEnd', function () {
|
|||||||
app()->db->name('SystemOplog')->insertAll($items);
|
app()->db->name('SystemOplog')->insertAll($items);
|
||||||
}
|
}
|
||||||
$GLOBALS['oplogs'] = [];
|
$GLOBALS['oplogs'] = [];
|
||||||
app()->db->name('SystemOplog')->where('create_at', '<', strtotime('-7days'))->delete();
|
$lastdate = date('Y-m-d H:i:s', strtotime('-7days'));
|
||||||
|
app()->db->name('SystemOplog')->where('create_at', '<', $lastdate)->delete();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user