<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Monitor; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; class ModStartMonitorMiddleware { public function handle(Request $RDnT0, \Closure $LeO9R) { goto hRC8o; Ecpkj: if (defined('LARAVEL_START')) { goto nX6tI; NDwxF: $eNE35 = $RDnT0->method(); goto wI4d_; Rsmv_: $XVqXz = $RDnT0->url(); goto NDwxF; wL0kA: $do_OL = $RDnT0->input(); goto Rsmv_; wI4d_: if ($Zco5P > 1000) { $pmJAc = json_encode($do_OL, JSON_UNESCAPED_UNICODE); Log::warning("LONG_REQUEST {$eNE35} [{$XVqXz}] {$Zco5P}ms {$pmJAc}"); } goto vwUoQ; vwUoQ: $SmR_S = DatabaseMonitor::getQueryCountPerRequest(); goto aUaCU; aUaCU: if ($SmR_S > 10) { $pmJAc = json_encode($do_OL, JSON_UNESCAPED_UNICODE); Log::warning("MASS_REQUEST_SQL {$SmR_S} {$eNE35} [{$XVqXz}] {$pmJAc} -> " . json_encode(DatabaseMonitor::getQueryCountPerRequestSqls())); } goto wH7VG; nX6tI: $Zco5P = round((microtime(true) - LARAVEL_START) * 1000, 2); goto wL0kA; wH7VG: } goto yxn8J; hRC8o: $Lq983 = $LeO9R($RDnT0); goto Ecpkj; yxn8J: return $Lq983; goto NtAuB; NtAuB: } }