作者 刘锟

update

@@ -467,6 +467,9 @@ if (!function_exists('getImageUrl')) { @@ -467,6 +467,9 @@ if (!function_exists('getImageUrl')) {
467 if((strpos($path,'https://')!== false) || (strpos($path,'http://') !== false)){ 467 if((strpos($path,'https://')!== false) || (strpos($path,'http://') !== false)){
468 return $path; 468 return $path;
469 } 469 }
  470 + if(substr($path,0,2) == '//'){
  471 + return 'https:'.$path;
  472 + }
470 if($location == 1){ 473 if($location == 1){
471 $cos = config('filesystems.disks.cos'); 474 $cos = config('filesystems.disks.cos');
472 $cosCdn = $cos['cdn']; 475 $cosCdn = $cos['cdn'];