改进url生成

This commit is contained in:
thinkphp
2017-02-09 11:59:34 +08:00
parent f2b4a0680e
commit a8a903bfd4

View File

@@ -80,7 +80,7 @@ class Url
if (!empty($match[1])) {
$domain = $match[1];
}
if (!empty($match[2])) {
if (!is_null($match[2])) {
$suffix = $match[2];
}
} elseif (!empty($rule) && isset($name)) {