正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -455,7 +455,7 @@ if (!function_exists('getImageUrl')) { | @@ -455,7 +455,7 @@ if (!function_exists('getImageUrl')) { | ||
| 455 | * @method :post | 455 | * @method :post |
| 456 | * @time :2023/7/20 16:46 | 456 | * @time :2023/7/20 16:46 |
| 457 | */ | 457 | */ |
| 458 | - function getImageUrl($path,$storage_type = 0,$location = 1){ | 458 | + function getImageUrl($path,$storage_type = 0,$location = 0){ |
| 459 | if(is_array($path)){ | 459 | if(is_array($path)){ |
| 460 | $url =[]; | 460 | $url =[]; |
| 461 | foreach ($path as $v){ | 461 | foreach ($path as $v){ |
| @@ -476,7 +476,7 @@ if (!function_exists('getImageUrl')) { | @@ -476,7 +476,7 @@ if (!function_exists('getImageUrl')) { | ||
| 476 | // if($imageInfo === false){ | 476 | // if($imageInfo === false){ |
| 477 | // return ''; | 477 | // return ''; |
| 478 | // } | 478 | // } |
| 479 | - if($location == 1){ | 479 | + if($location == 0){ |
| 480 | $cos = config('filesystems.disks.cos'); | 480 | $cos = config('filesystems.disks.cos'); |
| 481 | $cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1']; | 481 | $cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1']; |
| 482 | $url = $cosCdn.$path; | 482 | $url = $cosCdn.$path; |
| @@ -498,7 +498,7 @@ if (!function_exists('getFileUrl')) { | @@ -498,7 +498,7 @@ if (!function_exists('getFileUrl')) { | ||
| 498 | * @method :post | 498 | * @method :post |
| 499 | * @time :2023/7/20 16:46 | 499 | * @time :2023/7/20 16:46 |
| 500 | */ | 500 | */ |
| 501 | - function getFileUrl($path,$storage_type = 0,$location = 1){ | 501 | + function getFileUrl($path,$storage_type = 0,$location = 0){ |
| 502 | if(is_array($path)){ | 502 | if(is_array($path)){ |
| 503 | $url =[]; | 503 | $url =[]; |
| 504 | foreach ($path as $v){ | 504 | foreach ($path as $v){ |
| @@ -519,7 +519,7 @@ if (!function_exists('getFileUrl')) { | @@ -519,7 +519,7 @@ if (!function_exists('getFileUrl')) { | ||
| 519 | // if($fileInfo === false){ | 519 | // if($fileInfo === false){ |
| 520 | // return ''; | 520 | // return ''; |
| 521 | // } | 521 | // } |
| 522 | - if($location == 1){ | 522 | + if($location == 0){ |
| 523 | $cos = config('filesystems.disks.cos'); | 523 | $cos = config('filesystems.disks.cos'); |
| 524 | $cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1']; | 524 | $cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1']; |
| 525 | $url = $cosCdn.$path; | 525 | $url = $cosCdn.$path; |
-
请 注册 或 登录 后发表评论