|
...
|
...
|
@@ -665,7 +665,7 @@ if (!function_exists('getImageUrl')) { |
|
|
|
* @method :post
|
|
|
|
* @time :2023/7/20 16:46
|
|
|
|
*/
|
|
|
|
function getImageUrl($path,$storage_type = 0,$location = 0){
|
|
|
|
function getImageUrl($path,$storage_type = 0,$location = 0,$image_cdn = 1){
|
|
|
|
if(is_array($path)){
|
|
|
|
$url =[];
|
|
|
|
foreach ($path as $v){
|
|
...
|
...
|
@@ -683,8 +683,11 @@ if (!function_exists('getImageUrl')) { |
|
|
|
}
|
|
|
|
if($location == 0){
|
|
|
|
$cos = config('filesystems.disks.cos');
|
|
|
|
if($image_cdn == 0){//v6链接
|
|
|
|
$cosCdn = $cos['cdn2'];
|
|
|
|
}else{
|
|
|
|
$cosCdn = ($storage_type == 0) ? $cos['cdn'] : $cos['cdn1'];
|
|
|
|
// $cosCdn = 'https://file.globalso.com';//TODO::暂时使用
|
|
|
|
}
|
|
|
|
$url = $cosCdn.$path;
|
|
|
|
}else{
|
|
|
|
$s3 = config('filesystems.disks.s3');
|
...
|
...
|
|