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