mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正Route类的domain方法
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user