<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Monitor; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; class ModStartMonitorMiddleware { public function handle(Request $U5_Oe, \Closure $pnI5g) { goto y1cjS; wFEVb: if (defined('LARAVEL_START')) { goto pETWO; en7da: $HkVnj = $U5_Oe->method(); goto rwPsH; pETWO: $aoDgD = round((microtime(true) - LARAVEL_START) * 1000, 2); goto ilSJT; xHT8H: $atvcv = DatabaseMonitor::getQueryCountPerRequest(); goto hFGqy; ilSJT: $HoUFw = $U5_Oe->input(); goto YPgkp; rwPsH: if ($aoDgD > 1000) { $oK4I3 = json_encode($HoUFw, JSON_UNESCAPED_UNICODE); Log::warning("LONG_REQUEST {$HkVnj} [{$VzVt9}] {$aoDgD}ms {$oK4I3}"); } goto xHT8H; YPgkp: $VzVt9 = $U5_Oe->url(); goto en7da; hFGqy: if ($atvcv > 10) { $oK4I3 = json_encode($HoUFw, JSON_UNESCAPED_UNICODE); Log::warning("MASS_REQUEST_SQL {$atvcv} {$HkVnj} [{$VzVt9}] {$oK4I3} -> " . json_encode(DatabaseMonitor::getQueryCountPerRequestSqls())); } goto IgbAj; IgbAj: } goto rPMvT; rPMvT: return $CqM8X; goto Y1Pa6; y1cjS: $CqM8X = $pnI5g($U5_Oe); goto wFEVb; Y1Pa6: } }