From 7db0d1714e8c12ca432e2a1760badfed4c0de561 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 6 Mar 2021 20:00:55 +0800 Subject: [PATCH] modify --- HttpServer/Route/Node.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 058e8aaa..e7fa4357 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -81,7 +81,9 @@ class Node extends HttpService $this->_error = 'Controller is con\'t exec.'; } else if ($handler instanceof Closure) { $this->handler = $handler; - } else { + + $this->callback = Reduce::reduce($this->createDispatch(), $this->annotation()); + } else { [$controller, $action] = $this->handler = $handler; if (!($controller instanceof Controller)) { return $this;