Fixes : ps
This commit is contained in:
parent
6a9fa39d80
commit
a4adf09893
@ -216,23 +216,20 @@ class Sales_PD_Controller extends REST_Controller {
|
||||
if($view_data['section9']){
|
||||
// $gcpBucketName = GCP_BUCKET_NAME;
|
||||
foreach ($view_data['section9'] as $key => $value){
|
||||
if($value['img_name'] == '' ){
|
||||
if($value['img_name'] != '' ){
|
||||
$bucket_name = LENDER_BUCKET_NAME_PREFIX.$sales_pd_data[0]['lender_id'];
|
||||
$bucket_key = "sales_pd/".$sales_pd_data[0]['sales_pd_id']."/images/".$value['img_name'].".png";
|
||||
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name, $bucket_key,'30 minutes');
|
||||
$img_url = $value['img'] ? $value['img'] : ($singed_uri ? $singed_uri : "");
|
||||
$view_data['section9'][$key]['img_name'] = $img_url;
|
||||
$view_data['section9'][$key]['img'] = $img_url;
|
||||
// $objectName = "pd".$sales_pd_id."/images/".$value['img_name'].".png";
|
||||
// $img_gcp_url = $this->googlecloud->getSingleObjectInaBucketAsSignedURI($gcpBucketName,$objectName);
|
||||
// $view_data['section9'][$key]['img'] = $img_gcp_url ? $img_gcp_url : "";
|
||||
// echo "img". $img_gcp_url;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// print_r($view_data['section9']);die();
|
||||
$satellite_image = $this->Sales_PD_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $sales_pd_id,'img_name' => 'satellite','isactive' => 1),SALEPD_DOCS);
|
||||
$bucket_name = LENDER_BUCKET_NAME_PREFIX.$sales_pd_data[0]['lender_id'];
|
||||
$bucket_key = "sales_pd/".$sales_pd_data[0]['sales_pd_id']."/images/satellite.png";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user