From 74d32e8ffe65cd504ba77f0ca0ab078e973bbcea Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 17 Jun 2016 12:34:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=B7=AF=E7=94=B1=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E7=9A=84=E9=A9=BC=E5=B3=B0=E5=AE=9A=E4=B9=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/think/Route.php b/library/think/Route.php index aa89ba61..14ff97ab 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -606,7 +606,7 @@ class Route self::$bind = ['type' => 'group', 'group' => substr($result, 1, -1)]; } else { // 绑定到模块/控制器 例如 index/user - self::$bind = ['type' => 'module', 'module' => $result, 'convert' => true]; + self::$bind = ['type' => 'module', 'module' => $result]; } } } @@ -853,7 +853,7 @@ class Route if (!empty($array[1])) { self::parseUrlParams($array[1]); } - return ['type' => 'module', 'module' => $controller . '/' . $action, 'convert' => true]; + return ['type' => 'module', 'module' => $controller . '/' . $action]; } /** @@ -973,7 +973,7 @@ class Route if (!empty($result['var'])) { $_GET = array_merge($result['var'], $_GET); } - return ['type' => 'module', 'module' => $result['route'], 'convert' => null]; + return ['type' => 'module', 'module' => $result['route']]; } /** @@ -1172,7 +1172,7 @@ class Route // 解析剩余的URL参数 self::parseUrlParams(implode('/', $paths), $var); // 路由到模块/控制器/操作 - $result = ['type' => 'module', 'module' => $result['route'], 'convert' => true]; + $result = ['type' => 'module', 'module' => $result['route'], 'convert' => false]; } return $result; }