DiverseYouthNightSchool/application/admin/behavior/AdminLog.php

15 lines
277 B
PHP
Raw Permalink Normal View History

2024-11-04 10:49:10 +08:00
<?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();
}
}
}