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
b9e7d852d9
commit
650e2351ca
@ -23,7 +23,7 @@ try {
|
||||
/*! 数据变更日志开关状态 */
|
||||
if (sysconf('base.oplog_state') && ($days = floatval(sysconf('base.oplog_days'))) > 0) {
|
||||
/*! 数据变更批量写入 */
|
||||
app()->event->listen('HttpEnd', function () {
|
||||
app()->event->listen('HttpEnd', function () use ($days) {
|
||||
if (is_array($GLOBALS['oplogs']) && count($GLOBALS['oplogs']) > 0) {
|
||||
foreach (array_chunk($GLOBALS['oplogs'], 100) as $items) {
|
||||
app()->db->name('SystemOplog')->insertAll($items);
|
||||
|
Loading…
x
Reference in New Issue
Block a user