mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 01:52:48 +08:00
完善本地存储的路径拼接;
This commit is contained in:
@@ -233,7 +233,7 @@ function build_upload_url($url)
|
||||
|
||||
switch ($upload_type) {
|
||||
case 'local_public':
|
||||
// $prefix_url = Request::domain();
|
||||
$prefix_url = Request::domain().'/storage';
|
||||
break;
|
||||
case 'qnoss':
|
||||
$prefix_url = $config['qnoss_domain'];
|
||||
@@ -249,5 +249,5 @@ function build_upload_url($url)
|
||||
# code...
|
||||
break;
|
||||
}
|
||||
return trim($prefix_url, '/') . '/' . trim($url, '/');
|
||||
return rtrim($prefix_url, '/') . '/' . ltrim($url, '/');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user