// +---------------------------------------------------------------------- // +---------------------------------------------------------------------- // | 初始化配置 // +---------------------------------------------------------------------- namespace app\admin\behavior; class Adminlog { public function run($params) { //只记录POST请求的日志 if (request()->isPost() && config('auto_record_admin_log')) { \app\admin\model\Adminlog::record(); } } }