mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进Route类parseUrl方法
This commit is contained in:
@@ -1207,7 +1207,7 @@ class Route
|
|||||||
// 检查地址是否被定义过路由
|
// 检查地址是否被定义过路由
|
||||||
$name = strtolower($module . '/' . Loader::parseName($controller, 1) . '/' . $action);
|
$name = strtolower($module . '/' . Loader::parseName($controller, 1) . '/' . $action);
|
||||||
$name2 = '';
|
$name2 = '';
|
||||||
if (empty($module) || isset(self::$bind['module']) && $module == self::$bind['module']) {
|
if (empty($module) || isset($bind) && $module == $bind) {
|
||||||
$name2 = strtolower(Loader::parseName($controller, 1) . '/' . $action);
|
$name2 = strtolower(Loader::parseName($controller, 1) . '/' . $action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user