From 75beb3f4244727609ff22a30dcd96f8137b9d8fc Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 13 Mar 2017 15:01:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRoute=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/think/Route.php b/library/think/Route.php index 506d74ba..0fa95d97 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -1057,7 +1057,7 @@ class Route if (!empty($array[1])) { self::parseUrlParams($array[1]); } - return ['type' => 'method', 'method' => [$class, $action]]; + return ['type' => 'method', 'method' => [$class, $action], 'var' => []]; } /** @@ -1077,7 +1077,7 @@ class Route if (!empty($array[2])) { self::parseUrlParams($array[2]); } - return ['type' => 'method', 'method' => [$namespace . '\\' . Loader::parseName($class, 1), $method]]; + return ['type' => 'method', 'method' => [$namespace . '\\' . Loader::parseName($class, 1), $method], 'var' => []]; } /** @@ -1096,7 +1096,7 @@ class Route if (!empty($array[1])) { self::parseUrlParams($array[1]); } - return ['type' => 'controller', 'controller' => $controller . '/' . $action]; + return ['type' => 'controller', 'controller' => $controller . '/' . $action, 'var' => []]; } /**