This commit is contained in:
as2252258@163.com
2021-03-26 01:15:28 +08:00
parent 5c72f9bbfa
commit 7b234e7edc
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class Json
public static function encode($data): bool|string
{
if (empty($data)) {
return $data;
return false;
}
if (is_array($data)) {
return json_encode($data, JSON_UNESCAPED_UNICODE);