|
...
|
...
|
@@ -526,7 +526,7 @@ if (!function_exists('str_replace_url')) { |
|
|
|
$urlParts = parse_url($url);
|
|
|
|
// 检查是否存在 host(域名)部分
|
|
|
|
if (isset($urlParts['path'])) {
|
|
|
|
$urlWithoutDomain = str_replace('/upload', '', $urlParts['path']);
|
|
|
|
$urlWithoutDomain = $urlParts['path'];
|
|
|
|
return $urlWithoutDomain;
|
|
|
|
} else {
|
|
|
|
return $url;
|
...
|
...
|
|