改名
This commit is contained in:
@@ -52,8 +52,18 @@ class Router extends Application implements RouterInterface
|
||||
// list($first, $explode) = $this->split($path);
|
||||
|
||||
$paths = array_column($this->groupTacks, 'prefix');
|
||||
if (empty($paths)) {
|
||||
$path = ltrim($path, '/');
|
||||
} else {
|
||||
if ($path !== '/') {
|
||||
$path = implode('/', $paths) . '/' . ltrim($path, '/');
|
||||
|
||||
} else {
|
||||
$path = implode('/', $paths);
|
||||
}
|
||||
}
|
||||
if (empty($path)) {
|
||||
$path = '/';
|
||||
}
|
||||
|
||||
// $parent = $this->nodes[$method][$first] ?? null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user