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
970ac320b0
commit
d6c83c4c5b
@ -46,10 +46,9 @@ if (!function_exists('sysoplog')) {
|
|||||||
$app = app();
|
$app = app();
|
||||||
return $app->db->name('SystemOplog')->insert([
|
return $app->db->name('SystemOplog')->insert([
|
||||||
'node' => \think\admin\service\NodeService::instance($app)->getCurrent(),
|
'node' => \think\admin\service\NodeService::instance($app)->getCurrent(),
|
||||||
'geoip' => PHP_SAPI === 'cli' ? '127.0.0.1' : $app->request->ip(),
|
'geoip' => $app->request->isCli() ? '127.0.0.1' : $app->request->ip(),
|
||||||
'action' => $action,
|
'action' => $action, 'content' => $content,
|
||||||
'content' => $content,
|
'username' => $app->request->isCli() ? 'cli' : $app->session->get('user.username', ''),
|
||||||
'username' => PHP_SAPI === 'cli' ? 'cli' : $app->session->get('user.username'),
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user