This commit is contained in:
2021-02-23 14:27:19 +08:00
parent f3582527a7
commit f36ceb77de
+4 -1
View File
@@ -450,9 +450,12 @@ class Node extends HttpService
*/ */
public function dispatch(): mixed public function dispatch(): mixed
{ {
if (empty($this->callback) && $this->restructure()) { if (empty($this->callback)) {
$this->restructure();
if (empty($this->callback)) {
return Json::to(404, $node->_error ?? 'Page not found.'); return Json::to(404, $node->_error ?? 'Page not found.');
} }
}
$requestParams = func_get_args(); $requestParams = func_get_args();
if (func_num_args() > 0) { if (func_num_args() > 0) {