作者 lyh

gx

... ... @@ -598,10 +598,7 @@ if (!function_exists('getFileUrl')) {
$fileTypeArr = ['zip', 'pdf', 'mp4', 'doc', 'docx', 'm4v', 'xlsx'];
if(in_array(strtolower($file_type),$fileTypeArr)){
$cdn2 = config('filesystems.disks.cos')['cdn2'];
$file_contents = file_get_contents($cdn2.$path);
if ($file_contents !== false) {
return $cdn2.$path;
}
return $cdn2.$path;
}
if($location == 0){
//v6-file.globalso.com
... ...