|
|
|
@ -23,11 +23,12 @@ class AppEnd |
|
|
|
|
if(isset($header['x-token']) and $header['x-token']){ |
|
|
|
|
$token = $header['x-token']; |
|
|
|
|
} |
|
|
|
|
$runTime = microtime(true) - Request::time(true); |
|
|
|
|
$jsonRes = json_encode($response, JSON_UNESCAPED_UNICODE); |
|
|
|
|
if(is_array($response) and (strpos($jsonRes, '<!DOCTYPE html>') === false and strpos($jsonRes, '<span') === false)) { |
|
|
|
|
Log::info(Request::url(). ' params: ' . json_encode($params) ." response: " . $jsonRes ); |
|
|
|
|
Log::info(Request::url(). ' runtime is ' . $runTime . ' params: ' . json_encode($params) ." response: " . $jsonRes ); |
|
|
|
|
}else{ |
|
|
|
|
Log::info(Request::url(). ' params: ' . json_encode($params)); |
|
|
|
|
Log::info(Request::url(). ' runtime is ' . $runTime . ' params: ' . json_encode($params)); |
|
|
|
|
} |
|
|
|
|
// Log::info(" token: " . $token); |
|
|
|
|
} |
|
|
|
|