代码初始化
This commit is contained in:
14
application/admin/behavior/AdminLog.php
Normal file
14
application/admin/behavior/AdminLog.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\behavior;
|
||||
|
||||
class AdminLog
|
||||
{
|
||||
public function run(&$response)
|
||||
{
|
||||
//只记录POST请求的日志
|
||||
if (request()->isPost() && config('fastadmin.auto_record_log')) {
|
||||
\app\admin\model\AdminLog::record();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user