From b94b0a51185a8b998270ecf6bd66ccd351fc5c46 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 22 Sep 2016 10:33:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=88=B0=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=20=E6=94=AF=E6=8C=81=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E5=8C=96=E7=B1=BB=E6=B3=A8=E5=85=A5=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=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 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 { // 静态方法