兼容修改
This commit is contained in:
@@ -52,7 +52,7 @@ class MyExceptionHandle extends ExceptionHandler implements ExceptionHandlerInte
|
||||
}
|
||||
|
||||
// 非json请求则返回一个页面
|
||||
return new Response(200, [], $exception->getMessage());
|
||||
return new Response(200, ['Content-Type' => 'application/json'], $exception->getMessage());
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user