mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-04 06:12:48 +08:00
优化json不转义中文
修正transform加载路径
This commit is contained in:
@@ -13,10 +13,10 @@ namespace think\transform\driver;
|
||||
|
||||
class Json{
|
||||
public function encode($data){
|
||||
return json_encode($data);
|
||||
return json_encode($data, JSON_UNESCAPED_UNICODE);
|
||||
}
|
||||
|
||||
public function decode($data, $assoc = true){
|
||||
return json_decode($data, $assoc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user