作者 赵彬吉

update

... ... @@ -421,17 +421,19 @@ if (!function_exists('getImageUrl')) {
* @time :2023/7/20 16:46
*/
function getImageUrl($path,$location = 1){
if(is_array($path)){
$url =[];
foreach ($path as $v){
$url[] = getImageUrl($v);
}
$url = array_filter($url);
}else{
if(empty($path)){
return '';
}
if((strpos($path,'https://')!== false) || (strpos($path,'http://') !== false)){
return $path;
}
if(is_array($path)){
foreach ($path as $v){
$url[] = getImageUrl($v);
}
}else{
if($location == 1){
$cos = config('filesystems.disks.cos');
$cosCdn = $cos['cdn'];
... ...