修正Route类的domain方法

This commit is contained in:
thinkphp
2016-07-30 10:44:24 +08:00
parent 762e902e79
commit 3c48a78c56

View File

@@ -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];