This commit is contained in:
2021-06-08 11:56:40 +08:00
parent 557d0fd583
commit 7e25c361bf
2 changed files with 2 additions and 1 deletions
+2
View File
@@ -158,6 +158,8 @@ class Response extends HttpService
{
$sendData = $this->parseData($context);
var_dump($sendData);
$response = Context::getContext('response');
if ($response instanceof SResponse) {
$this->sendData($response, $sendData, $statusCode);
-1
View File
@@ -492,7 +492,6 @@ class Router extends HttpService implements RouterInterface
if (!($node instanceof Node)) {
return send(self::NOT_FOUND);
}
var_dump($node);
send(($response = $node->dispatch()), 200);
if (!$node->hasAfter()) {
return null;