Image fixes : ps

This commit is contained in:
VE10-Sanjeev 2023-06-07 13:03:05 +05:30
parent 3297edbc52
commit 630b6abee5

View File

@ -739,7 +739,7 @@ class Flyhi_Controller extends REST_Controller {
}
if(!$flyhipd_data[0]['is_pdf'] || $flyhipd_data[0]['is_edited'])
// if(1)
//if(1)
{
$all_section_data = $this->Flyhi_Model->selectCustomRecords(array('*'),array('sales_pd_id' => $pd_id,'isactive' => 1),SALESPD_SECTION_DATA,array(),'','section_id','ASC');
@ -762,13 +762,13 @@ class Flyhi_Controller extends REST_Controller {
$view_data['geo_location'] = $flyhipd_data[0]['geo_location'];
$satellite_image = $this->Flyhi_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $pd_id,'img_name' => 'satellite','isactive' => 1),SALEPD_DOCS);
if(!empty($satellite_image)){ // checking Entity Available or not
// if(!empty($satellite_image)){ // checking Entity Available or
$bucket_name = LENDER_BUCKET_NAME_PREFIX.$flyhipd_data[0]['lender_id'];
$bucket_key = "sales_pd/".$flyhipd_data[0]['sales_pd_id']."/images/satellite.png";
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name, $bucket_key,'30 minutes');
$img_url = 'data:image/gif;base64,'.$singed_uri;
$view_data['satellite_image'] = $img_url;
}else{ $view_data['satellite_image'] = ""; }
// }else{ $view_data['satellite_image'] = ""; }
// $view_data['satellite_image'] = $this->Flyhi_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $pd_id,'img_name' => 'satellite','isactive' => 1),SALEPD_DOCS);
// die();
//$view_name = $flyhipd_data[0]['short_name'].'_'.$flyhipd_data[0]['abbr'];