改名
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user