mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正Route类的domain方法
This commit is contained in:
@@ -95,7 +95,7 @@ class Route
|
|||||||
{
|
{
|
||||||
if (is_array($domain)) {
|
if (is_array($domain)) {
|
||||||
foreach ($domain as $key => $item) {
|
foreach ($domain as $key => $item) {
|
||||||
self::$rules['domain'][$key][] = is_array($item) ? $item : [$item, $option, $pattern];
|
self::$rules['domain'][$key][] = [$item, $option, $pattern];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
self::$rules['domain'][$domain][] = [$rule, $option, $pattern];
|
self::$rules['domain'][$domain][] = [$rule, $option, $pattern];
|
||||||
|
|||||||
Reference in New Issue
Block a user