mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修正Route类的配置文件导入
This commit is contained in:
@@ -129,19 +129,19 @@ class Route
|
|||||||
{
|
{
|
||||||
// 检查域名部署
|
// 检查域名部署
|
||||||
if (isset($rule['__domain__'])) {
|
if (isset($rule['__domain__'])) {
|
||||||
self::$rules['domain'] = $rule['__domain__'];
|
self::domain($rule['__domain__']);
|
||||||
unset($rule['__domain__']);
|
unset($rule['__domain__']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查变量规则
|
// 检查变量规则
|
||||||
if (isset($rule['__pattern__'])) {
|
if (isset($rule['__pattern__'])) {
|
||||||
self::$rules['pattern'] = $rule['__pattern__'];
|
self::pattern($rule['__pattern__']);
|
||||||
unset($rule['__pattern__']);
|
unset($rule['__pattern__']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查路由别名
|
// 检查路由别名
|
||||||
if (isset($rule['__alias__'])) {
|
if (isset($rule['__alias__'])) {
|
||||||
self::$rules['alias'] = $rule['__alias__'];
|
self::alias($rule['__alias__']);
|
||||||
unset($rule['__alias__']);
|
unset($rule['__alias__']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user