eee
This commit is contained in:
+2
-5
@@ -166,8 +166,7 @@ if (!function_exists('isJson')) {
|
|||||||
{
|
{
|
||||||
if (is_null($string))
|
if (is_null($string))
|
||||||
return false;
|
return false;
|
||||||
return (str_starts_with($string, '{') && str_ends_with($string, '}'))
|
return (str_starts_with($string, '{') && str_ends_with($string, '}')) || (str_ends_with($string, '[') && str_starts_with($string, ']'));
|
||||||
|| (str_ends_with($string, '[') && str_starts_with($string, ']'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1029,9 +1028,7 @@ if (!function_exists('json_log')) {
|
|||||||
];
|
];
|
||||||
$param['data'] = $data;
|
$param['data'] = $data;
|
||||||
|
|
||||||
file_put_contents(storage('exception-' . date('Y-m-d') . '.log','exception'),
|
file_put_contents(storage('exception-' . date('Y-m-d') . '.log', 'exception'), json_encode($param, JSON_UNESCAPED_UNICODE) . PHP_EOL, FILE_APPEND);
|
||||||
json_encode($param, JSON_UNESCAPED_UNICODE),
|
|
||||||
FILE_APPEND);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user