作者 lyh

gx

@@ -473,8 +473,8 @@ if (!function_exists('getImageUrl')) { @@ -473,8 +473,8 @@ if (!function_exists('getImageUrl')) {
473 return 'https:'.$path; 473 return 'https:'.$path;
474 } 474 }
475 if($location == 0){ 475 if($location == 0){
476 - $cos = ($storage_type == 0) ? config('filesystems.disks.cos') : config('filesystems.disks.cos1');  
477 - $cosCdn = $cos['cdn']; 476 + $cos = config('filesystems.disks.cos');
  477 + $cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1'];
478 $url = $cosCdn.$path; 478 $url = $cosCdn.$path;
479 }else{ 479 }else{
480 $url = url($path); 480 $url = url($path);
@@ -509,8 +509,8 @@ if (!function_exists('getFileUrl')) { @@ -509,8 +509,8 @@ if (!function_exists('getFileUrl')) {
509 return 'https:'.$path; 509 return 'https:'.$path;
510 } 510 }
511 if($location == 0){ 511 if($location == 0){
512 - $cos = ($storage_type == 0) ? config('filesystems.disks.cos') : config('filesystems.disks.cos1');  
513 - $cosCdn = $cos['cdn']; 512 + $cos = config('filesystems.disks.cos');
  513 + $cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1'];
514 $url = $cosCdn.$path; 514 $url = $cosCdn.$path;
515 }else{ 515 }else{
516 $url = url($path); 516 $url = url($path);