diff --git a/library/think/App.php b/library/think/App.php index 95ef5e50..3d94c8bf 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -214,7 +214,7 @@ class App public static function invokeMethod($method, $vars = []) { if (is_array($method)) { - $class = is_object($method[0]) ? $method[0] : new $method[0]; + $class = is_object($method[0]) ? $method[0] : new $method[0](Request::instance()); $reflect = new \ReflectionMethod($class, $method[1]); } else { // 静态方法