From 1ebfe2f60fd66773c2ecc7a62a02198147af5f4f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 26 Sep 2016 14:03:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BRoute=E7=B1=BB=E7=9A=84check?= =?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 339e4903..c7c4a731 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -830,7 +830,7 @@ class Route if (true === $rule) { $rule = self::getRouteExpress($url); } - if (!empty($rule['route'])) { + if (!empty($rule['route']) && self::checkOption($rule['option'], $url, $request)) { return self::parseRule($url, $rule['route'], $url, $rule['option']); } }