mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 05:02:48 +08:00
改进绑定支持绑定到控制器分级
This commit is contained in:
@@ -1163,8 +1163,9 @@ class Route
|
||||
{
|
||||
|
||||
if (isset(self::$bind['module'])) {
|
||||
$bind = str_replace('/', $depr, self::$bind['module']);
|
||||
// 如果有模块/控制器绑定
|
||||
$url = self::$bind['module'] . '/' . ltrim($url, '/');
|
||||
$url = $bind . ('.' != substr($bind, -1) ? $depr : '') . ltrim($url, $depr);
|
||||
}
|
||||
$url = str_replace($depr, '|', $url);
|
||||
list($path, $var) = self::parseUrlPath($url);
|
||||
|
||||
Reference in New Issue
Block a user