From 97acdbe0a548cdc36c2d5f192fd5c4ec9984c179 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 22 May 2016 11:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRoute=E7=B1=BBparseRoute?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Route.php b/library/think/Route.php index 5bee29d8..609b4ae6 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -679,7 +679,7 @@ class Route if (false !== strpos($url, '?')) { // [模块/控制器/操作?]参数1=值1&参数2=值2... $info = parse_url($url); - $path = $info['path']; + $path = explode('/', $info['path']); parse_str($info['query'], $var); } elseif (strpos($url, '/')) { // [模块/控制器/操作]