兼容修改

This commit is contained in:
张松
2025-08-15 17:52:17 +08:00
parent 0dfe8f743d
commit b1567c9714

View File

@@ -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());