This commit is contained in:
2021-06-08 11:54:48 +08:00
parent 56df262e56
commit 9b7e6e1396
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -354,9 +354,6 @@ class Node extends HttpService
public function annotationInject(string $className, string $action): Node
{
$annotation = annotation()->getMethods($className, $action);
if ($action == 'xiaqi') {
var_export($annotation);
}
if (empty($annotation)) {
return $this;
}
+1 -1
View File
@@ -492,8 +492,8 @@ class Router extends HttpService implements RouterInterface
if (!($node instanceof Node)) {
return send(self::NOT_FOUND);
}
var_dump($node);
send(($response = $node->dispatch()), 200);
var_dump($response);
if (!$node->hasAfter()) {
return null;
}