mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
改进Url类
This commit is contained in:
@@ -118,7 +118,7 @@ class Url
|
|||||||
$type = Route::getBind('type');
|
$type = Route::getBind('type');
|
||||||
if ($type) {
|
if ($type) {
|
||||||
$bind = Route::getBind($type);
|
$bind = Route::getBind($type);
|
||||||
if (0 === strpos($url, $bind)) {
|
if ($bind && 0 === strpos($url, $bind)) {
|
||||||
$url = substr($url, strlen($bind) + 1);
|
$url = substr($url, strlen($bind) + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user