From 5e32fa2880b833bd2f1928e9c76bd56efdf82ab2 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 16 Jun 2016 00:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Route.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/think/Route.php b/library/think/Route.php index dc1e22b3..3e3a2b63 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -747,8 +747,7 @@ class Route if ($miss['route'] instanceof \Closure) { // 执行闭包 return ['type' => 'function', 'function' => $miss['route'], 'params' => []]; - } - if (self::checkOption($miss['option'], $url, $request)) { + } elseif (self::checkOption($miss['option'], $url, $request)) { return self::parseRule('', $miss['route'], $url, []); } }