From bf5ebb38d03792d75946120751634233a342a875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 27 Nov 2020 14:32:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Route/Node.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 598c8448..15f38b16 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -422,10 +422,10 @@ class Node extends Application */ public function dispatch() { - if (empty($node->callback)) { + if (empty($this->callback)) { return JSON::to(404, $node->_error ?? 'Page not found.'); } - return call_user_func($node->callback, \request()); + return call_user_func($this->callback, \request()); }