From 3c48a78c56f6a96de2a933f456a799e7c028b35a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 30 Jul 2016 10:44:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Route=E7=B1=BB=E7=9A=84domain?= =?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 b94be143..4d7ded34 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -95,7 +95,7 @@ class Route { if (is_array($domain)) { foreach ($domain as $key => $item) { - self::$rules['domain'][$key][] = is_array($item) ? $item : [$item, $option, $pattern]; + self::$rules['domain'][$key][] = [$item, $option, $pattern]; } } else { self::$rules['domain'][$domain][] = [$rule, $option, $pattern];