<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Monitor; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; class ModStartMonitorMiddleware { public function handle(Request $MRMCA, \Closure $Vqu7c) { goto yfYCx; uB27h: if (defined('LARAVEL_START')) { goto lLAC5; IzEx1: if ($R43r5 > 10) { $Kp99R = json_encode($H2Do2, JSON_UNESCAPED_UNICODE); Log::warning("MASS_REQUEST_SQL {$R43r5} {$JHYOH} [{$xIfit}] {$Kp99R} -> " . json_encode(DatabaseMonitor::getQueryCountPerRequestSqls())); } goto I0kRl; pTQlk: if ($gmNPm > 1000) { $Kp99R = json_encode($H2Do2, JSON_UNESCAPED_UNICODE); Log::warning("LONG_REQUEST {$JHYOH} [{$xIfit}] {$gmNPm}ms {$Kp99R}"); } goto CwjCb; lLAC5: $gmNPm = round((microtime(true) - LARAVEL_START) * 1000, 2); goto GwFt3; CwjCb: $R43r5 = DatabaseMonitor::getQueryCountPerRequest(); goto IzEx1; kmQjB: $JHYOH = $MRMCA->method(); goto pTQlk; TWk5j: $xIfit = $MRMCA->url(); goto kmQjB; GwFt3: $H2Do2 = $MRMCA->input(); goto TWk5j; I0kRl: } goto Yjedo; yfYCx: $i1_1k = $Vqu7c($MRMCA); goto uB27h; Yjedo: return $i1_1k; goto NnF0N; NnF0N: } }