From 4ceee7c5b2f7fde094ea61c39acc6c95fe553431 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 19 Oct 2016 17:12:11 +0800 Subject: [PATCH] =?UTF-8?q?invoke=E8=87=AA=E5=8A=A8=E6=B3=A8=E5=85=A5?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=BC=A0=E5=85=A5=E5=BD=93=E5=89=8D=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/App.php b/library/think/App.php index d66e3438..98a58d71 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -283,7 +283,7 @@ class App if (method_exists($className, 'invoke')) { $method = new \ReflectionMethod($className, 'invoke'); if ($method->isPublic() && $method->isStatic()) { - $args[] = $className::invoke(); + $args[] = $className::invoke(Request::instance()); continue; } }