diff --git a/app/common.php b/app/common.php index 8ba851ef..5e356e96 100644 --- a/app/common.php +++ b/app/common.php @@ -155,7 +155,7 @@ if (!function_exists('get_filesystem_url')) { */ function get_filesystem_url(string $url, string $disk): string { - if (\think\helper\Str::startsWith($url, ['http://', 'https://'])) { + if (\think\helper\Str::startsWith($url, ['http://', 'https://', '//'])) { return $url; } if (empty($disk)) {