Route类的bind方法参数顺序调整 增加getBind方法用于获取绑定信息

This commit is contained in:
thinkphp
2016-06-24 12:33:07 +08:00
parent 1a8bbf6725
commit 87ad5e95bb
5 changed files with 67 additions and 61 deletions

View File

@@ -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);
}