This commit is contained in:
as2252258@163.com
2021-03-06 20:00:55 +08:00
parent c2be5bd115
commit 7db0d1714e
+3 -1
View File
@@ -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;