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