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; } }