<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Monitor; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; use ModStart\Core\Util\SerializeUtil; class ModStartMonitorMiddleware { public function handle(Request $Kv_Mp, \Closure $SuXEo) { goto mzqAQ; IXOLk: if (defined('LARAVEL_START')) { goto e9NWp; LNk7S: $UVOMF = $Kv_Mp->method(); goto kBCRy; wYRFz: if ($wmPZ9 > 10) { $mattM = SerializeUtil::jsonEncode($vfMTB); Log::warning("MASS_REQUEST_SQL {$wmPZ9} {$UVOMF} [{$MiLaY}] {$mattM} -> " . SerializeUtil::jsonEncode(DatabaseMonitor::getQueryCountPerRequestSqls())); } goto R1QlA; kBCRy: if ($EjkFa > 1000) { $mattM = SerializeUtil::jsonEncode($vfMTB); Log::warning("LONG_REQUEST {$UVOMF} [{$MiLaY}] {$EjkFa}ms {$mattM}"); } goto W5PV4; W5PV4: $wmPZ9 = DatabaseMonitor::getQueryCountPerRequest(); goto wYRFz; pl55x: $MiLaY = $Kv_Mp->url(); goto LNk7S; OcyZj: $vfMTB = $Kv_Mp->input(); goto pl55x; e9NWp: $EjkFa = round((microtime(true) - LARAVEL_START) * 1000, 2); goto OcyZj; R1QlA: } goto KD0YA; mzqAQ: $aziFu = $SuXEo($Kv_Mp); goto IXOLk; KD0YA: return $aziFu; goto JLZaL; JLZaL: } }