This commit is contained in:
2020-11-27 14:32:48 +08:00
parent e8dd9f5b7e
commit bf5ebb38d0
+2 -2
View File
@@ -422,10 +422,10 @@ class Node extends Application
*/ */
public function dispatch() public function dispatch()
{ {
if (empty($node->callback)) { if (empty($this->callback)) {
return JSON::to(404, $node->_error ?? 'Page not found.'); return JSON::to(404, $node->_error ?? 'Page not found.');
} }
return call_user_func($node->callback, \request()); return call_user_func($this->callback, \request());
} }