<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Monitor; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; class ModStartMonitorMiddleware { public function handle(Request $Mjv3h, \Closure $WExJt) { goto pD7mX; pD7mX: $IB0nv = $WExJt($Mjv3h); goto liIbl; lsdmA: return $IB0nv; goto YCFOJ; liIbl: if (defined('LARAVEL_START')) { goto vaeyB; MhbVc: $m2Dmo = $Mjv3h->url(); goto D2zzj; D2zzj: $fSCUf = $Mjv3h->method(); goto mYAwu; mYAwu: if ($sEFWu > 1000) { $qHLCM = json_encode($kFc4w, JSON_UNESCAPED_UNICODE); Log::warning("LONG_REQUEST {$fSCUf} [{$m2Dmo}] {$sEFWu}ms {$qHLCM}"); } goto PJr8N; Jo1G5: $kFc4w = $Mjv3h->input(); goto MhbVc; i33z2: if ($Q8TJ9 > 10) { $qHLCM = json_encode($kFc4w, JSON_UNESCAPED_UNICODE); Log::warning("MASS_REQUEST_SQL {$Q8TJ9} {$fSCUf} [{$m2Dmo}] {$qHLCM} -> " . json_encode(DatabaseMonitor::getQueryCountPerRequestSqls())); } goto KJKbV; vaeyB: $sEFWu = round((microtime(true) - LARAVEL_START) * 1000, 2); goto Jo1G5; PJr8N: $Q8TJ9 = DatabaseMonitor::getQueryCountPerRequest(); goto i33z2; KJKbV: } goto lsdmA; YCFOJ: } }