mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
Route类的bind方法参数顺序调整 增加getBind方法用于获取绑定信息
This commit is contained in:
@@ -78,9 +78,9 @@ class Url
|
||||
}
|
||||
|
||||
// 检测URL绑定
|
||||
$type = Route::bind('type');
|
||||
$type = Route::getBind('type');
|
||||
if ($type) {
|
||||
$bind = Route::bind($type);
|
||||
$bind = Route::getBind($type);
|
||||
if (0 === strpos($url, $bind)) {
|
||||
$url = substr($url, strlen($bind) + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user