This commit is contained in:
2021-09-10 16:04:51 +08:00
parent d682b72735
commit f3827a1a83
-2
View File
@@ -80,13 +80,11 @@ class ServerRequest extends Request implements ServerRequestInterface
->withParsedBody(function (StreamInterface $stream, ?array $posts) use ($contentType) { ->withParsedBody(function (StreamInterface $stream, ?array $posts) use ($contentType) {
try { try {
$content = Parse::data($stream->getContents(), $contentType); $content = Parse::data($stream->getContents(), $contentType);
var_dump($content);
if (!empty($content)) { if (!empty($content)) {
return $content; return $content;
} }
return $posts; return $posts;
} catch (\Throwable $throwable) { } catch (\Throwable $throwable) {
var_dump($throwable->getMessage());
return $posts; return $posts;
} }
}); });