|
...
|
...
|
@@ -133,11 +133,11 @@ class ProductController extends BaseController |
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!empty($v['video'])){
|
|
|
|
$v['video']['url'] = getFileUrl($v['video']['url'],$this->user['storage_type'] ?? 0,$this->user['project_location'],$this->user['file_cdn']);
|
|
|
|
$v['video']['url'] = getFileUrl($v['video']['url'],$this->user['storage_type'] ?? 0,$this->user['project_location'],$this->user['file_cdn'] ?? 0);
|
|
|
|
$v['video']['video_image'] = getImageUrl($v['video']['video_image'] ?? '',$this->user['storage_type'] ?? 0,$this->user['project_location']);
|
|
|
|
}
|
|
|
|
if(!empty($v['files']) && !empty($v['files']['url'])){
|
|
|
|
$v['files']['url'] = getFileUrl($v['files']['url'],$this->user['storage_type'] ?? 0,$this->user['project_location'],$this->user['file_cdn']);
|
|
|
|
$v['files']['url'] = getFileUrl($v['files']['url'],$this->user['storage_type'] ?? 0,$this->user['project_location'],$this->user['file_cdn'] ?? 0);
|
|
|
|
}
|
|
|
|
return $this->success($v);
|
|
|
|
}
|
|
...
|
...
|
@@ -379,9 +379,9 @@ class ProductController extends BaseController |
|
|
|
foreach ($arr1 as $k1=>$v1){
|
|
|
|
$v1 = (array)$v1;
|
|
|
|
if(isset($v1['url'])){
|
|
|
|
$v1['url'] = getFileUrl($v1['url'],$this->user['storage_type'],$this->user['project_location'],$this->user['file_cdn']);
|
|
|
|
$v1['url'] = getFileUrl($v1['url'],$this->user['storage_type'],$this->user['project_location'],$this->user['file_cdn'] ?? 0);
|
|
|
|
}else{
|
|
|
|
$v1 = getFileUrl($v1,$this->user['storage_type'],$this->user['project_location'],$this->user['file_cdn']);
|
|
|
|
$v1 = getFileUrl($v1,$this->user['storage_type'],$this->user['project_location'],$this->user['file_cdn'] ?? 0);
|
|
|
|
}
|
|
|
|
$arr1[$k1] = $v1;
|
|
|
|
}
|
...
|
...
|
|