改进Url生成

This commit is contained in:
thinkphp
2018-02-01 17:33:51 +08:00
parent bbaf5c0050
commit 170355d291
2 changed files with 20 additions and 20 deletions

View File

@@ -302,7 +302,7 @@ class Url
foreach ($rule as $item) {
list($url, $pattern, $domain, $suffix) = $item;
if (empty($pattern)) {
return [$url, $domain, $suffix];
return [rtrim($url, '$'), $domain, $suffix];
}
$type = Config::get('url_common_param');
foreach ($pattern as $key => $val) {