From 5af34fbaba1fc7385d2fb3ff3c13301aa5303a59 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Wed, 7 Jun 2023 13:18:34 +0530 Subject: [PATCH] Satellite fixes : ps --- api/application/controllers/Flyhi_Controller.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/api/application/controllers/Flyhi_Controller.php b/api/application/controllers/Flyhi_Controller.php index 466865f0..89bd8f86 100644 --- a/api/application/controllers/Flyhi_Controller.php +++ b/api/application/controllers/Flyhi_Controller.php @@ -762,19 +762,16 @@ 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 $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'] = ""; } + $view_data['satellite_image'] = $singed_uri; // $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']; $view_name = $flyhipd_data[0]['short_name']; $html_content = $this->load->view('sale_pd_templates/'.$view_name,$view_data,true); - //echo $html_content;die(); + // echo $html_content;die(); $pdf_doc = $this->pdfgenerator->generate($html_content, $filename='version', $stream=false, $paper = 'A4', $orientation = "portrait"); //End of PDF Gen using DOM PDF $output_file = $this->external_path ."/sales_pd/" .$pd_id. "/temp.pdf";