调整后台
This commit is contained in:
@@ -211,8 +211,10 @@ class Init
|
||||
public function str2utf8($str)
|
||||
{
|
||||
$encode = mb_detect_encoding($str, ['ASCII', 'UTF-8', 'GB2312', 'GBK', 'BIG5']);
|
||||
$str = $str ? $str : mb_convert_encoding($str, 'UTF-8', $encode);
|
||||
$str = is_string($str) ? $str : '';
|
||||
if ($encode != 'UTF-8') {
|
||||
$str = $str ? $str : mb_convert_encoding($str, 'UTF-8', $encode);
|
||||
}
|
||||
$str = is_string($str) ? $str : '';
|
||||
|
||||
return $str;
|
||||
}
|
||||
@@ -222,7 +224,7 @@ class Init
|
||||
{
|
||||
$rt = microtime(true) - LARAVEL_START;
|
||||
|
||||
$header = ['rt' => round($rt * 1000, 2) . 'ms', 'qps' => round(1 / $rt, 1)];
|
||||
$header = ['rt' => round($rt * 1000, 2) . 'ms', 'qps' => round(1 / $rt, 1), 'company' => 'YSD'];
|
||||
|
||||
return \Response::json($this->outdata, 200, $header);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user