改名
This commit is contained in:
@@ -354,9 +354,6 @@ class Node extends HttpService
|
|||||||
public function annotationInject(string $className, string $action): Node
|
public function annotationInject(string $className, string $action): Node
|
||||||
{
|
{
|
||||||
$annotation = annotation()->getMethods($className, $action);
|
$annotation = annotation()->getMethods($className, $action);
|
||||||
if ($action == 'xiaqi') {
|
|
||||||
var_export($annotation);
|
|
||||||
}
|
|
||||||
if (empty($annotation)) {
|
if (empty($annotation)) {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -492,8 +492,8 @@ class Router extends HttpService implements RouterInterface
|
|||||||
if (!($node instanceof Node)) {
|
if (!($node instanceof Node)) {
|
||||||
return send(self::NOT_FOUND);
|
return send(self::NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
var_dump($node);
|
||||||
send(($response = $node->dispatch()), 200);
|
send(($response = $node->dispatch()), 200);
|
||||||
var_dump($response);
|
|
||||||
if (!$node->hasAfter()) {
|
if (!$node->hasAfter()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user