!30 优化URL方法

Merge pull request !30 from 逆天的蝈蝈/N/A
This commit is contained in:
meystack
2022-09-07 01:43:01 +00:00
committed by Gitee

View File

@@ -84,6 +84,8 @@ if (!function_exists('url')) {
if (!Str::startsWith($url, '/')) {
$url = DIRECTORY_SEPARATOR . $url;
}else{
return $url . $vars;
}
return $app == 'index' ? $url . $vars : '/' . $app . $url . $vars;