<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Monitor; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; class ModStartMonitorMiddleware { public function handle(Request $cSn43, \Closure $aPZzJ) { goto aIxA8; arhwu: return $mf4Oy; goto w9mLS; ch6Ml: if (defined('LARAVEL_START')) { goto D2ysu; oQlEY: $ExiFY = DatabaseMonitor::getQueryCountPerRequest(); goto t1om5; yD54D: $HxDDI = $cSn43->method(); goto Q0DOO; D2ysu: $ANM3E = round((microtime(true) - LARAVEL_START) * 1000, 2); goto jz7Ir; Q0DOO: if ($ANM3E > 1000) { $zlK8N = json_encode($Zxpx_, JSON_UNESCAPED_UNICODE); Log::warning("LONG_REQUEST {$HxDDI} [{$YjgEW}] {$ANM3E}ms {$zlK8N}"); } goto oQlEY; oelcN: $YjgEW = $cSn43->url(); goto yD54D; t1om5: if ($ExiFY > 10) { $zlK8N = json_encode($Zxpx_, JSON_UNESCAPED_UNICODE); Log::warning("MASS_REQUEST_SQL {$ExiFY} {$HxDDI} [{$YjgEW}] {$zlK8N} -> " . json_encode(DatabaseMonitor::getQueryCountPerRequestSqls())); } goto oO5fI; jz7Ir: $Zxpx_ = $cSn43->input(); goto oelcN; oO5fI: } goto arhwu; aIxA8: $mf4Oy = $aPZzJ($cSn43); goto ch6Ml; w9mLS: } }