From 68d1240fea1867058330b37fd5c8b15c685f5f73 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 9 Sep 2016 18:39:48 +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 9665ecfb..5d4a5274 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -1003,7 +1003,7 @@ class Route if (!empty($array[1])) { self::parseUrlParams($array[1]); } - return ['type' => 'method', 'method' => [$class, $action], 'params' => []]; + return ['type' => 'method', 'method' => [$class, $action]]; } /** @@ -1022,7 +1022,7 @@ class Route if (!empty($array[2])) { self::parseUrlParams($array[2]); } - return ['type' => 'method', 'method' => [$namespace . '\\' . $class, $method], 'params' => []]; + return ['type' => 'method', 'method' => [$namespace . '\\' . $class, $method]]; } /** @@ -1040,7 +1040,7 @@ class Route if (!empty($array[1])) { self::parseUrlParams($array[1]); } - return ['type' => 'controller', 'controller' => $controller . '/' . $action, 'params' => []]; + return ['type' => 'controller', 'controller' => $controller . '/' . $action]; } /**