发布2.3测试版

This commit is contained in:
2021-05-02 05:55:42 +08:00
parent 8732c85312
commit ef8224d20e
83 changed files with 635 additions and 1361 deletions
+4 -4
View File
@@ -9,10 +9,10 @@ class JsonResponse
{
public function handle(Request $request, Closure $next)
{
$data = $next($request);
if ($data instanceof \Illuminate\Http\JsonResponse) {
$data->setEncodingOptions(JSON_UNESCAPED_UNICODE);
$response = $next($request);
if ($response instanceof \Illuminate\Http\JsonResponse) {
$response->setEncodingOptions(JSON_UNESCAPED_UNICODE);
}
return $data;
return $response;
}
}