Live Issues IMGC fixes : ps

This commit is contained in:
sanjeev 2021-12-30 20:31:19 +05:30
parent 10a1ec3b39
commit 3fd3a179f8
4 changed files with 10 additions and 7 deletions

View File

@ -1129,7 +1129,7 @@ public function filterSalesPDList_post() {
{
$input_data = $this->post();
log_message('ERROR','####Satellite IMG CALLED smc credit pd ='.$input_data['smc_credit_pd']);
$id = $this->SMC_Credit_PD_Model->updateRecords($input_data,SMC_CREDIT_PD,array('smc_credit_pd' => $input_data['smc_credit_pd']));
satellite_image::getSatelliteImage($input_data['smc_credit_pd'],2);

View File

@ -960,10 +960,10 @@ class Sales_PD_Controller extends REST_Controller {
public function testAPISalesPD_post()
{
log_message('ERROR','####testAPISalesPD CALLED 439');
PDALERTS::sendSalesPDMail($this,439,"Delhi");die();
log_message('ERROR','####testAPISalesPD CALLED 2897');
// PDALERTS::sendSalesPDMail($this,2897,"Delhi");die();
//PDALERTS::sendSalesPDMail($this,32);die();
satellite_image::getSatelliteImage(32,2);//die();
satellite_image::getSatelliteImage(2897,2);//die();
// $url = "https://maps.googleapis.com/maps/api/staticmap?center=12.9788141,80.1871334&zoom=14&markers=color:red|12.9788141,80.1871334&size=800x300&maptype=roadmap&key=AIzaSyA3lYDYxwtn5vLSl45SOKbtK7G6cEyXGr0";
// file_put_contents('test.jpg', file_get_contents($url));
}
@ -1063,7 +1063,7 @@ public function filterSalesPDList_post() {
{
$input_data = $this->post();
log_message('ERROR','####Satellite IMG CALLED sales pd = '.$input_data['sales_pd_id']);
$id = $this->Sales_PD_Model->updateRecords($input_data,SALES_PD_DATA,array('sales_pd_id' => $input_data['sales_pd_id']));
satellite_image::getSatelliteImage($input_data['sales_pd_id'],2);

View File

@ -59,10 +59,12 @@ class PDALERTS
if(count($core_details))
{
$smc_lender_id = ENVIRONMENT == 'production' ? 7 : 35; //SMC lender id MWISE in live and demo
if($smc_lender_id == $core_details[0]['fk_lender_id']){
//Trigger Custom Notification apart from entity and PD level notification config
CUSTOM_PDALERTS::custom_pdnotification($CI,$core_details);//die();
//END Trigger Custom Notification apart from entity and PD level notification config
}
$is_pd_notify_enabled = $core_details[0]['is_notify_enabled'];
$is_sms_enabled = $core_details[0]['is_sms_enabled'];

View File

@ -6,13 +6,13 @@ class satellite_image
public static function getSatelliteImage($pd_id,$pd_type = 1,$api = null)//1 - credit PD,2 - sales pd, 3- smc credit pd
{
// echo 'satellite'.$pd_type;
log_message('ERROR','####Satellite IMG HELPER '.$pd_id);
$pdid = $pd_id;
$api_return = null;
$CI =&get_instance();
$path_to_check = ($pd_type == 1 || $pd_type == 3) ? $CI->external_path.'/pd_reports/'.$pdid : $CI->external_path.'/sales_pd/'.$pdid;
// echo $path_to_check;die();
$geo_location = null;
$pdmas = array();
$logger = $pd_type == 1 ? MYLOG::logFunction(null,$pdid) : MYLOG::logSalesPD($pdid);
@ -109,6 +109,7 @@ class satellite_image
}
//generate log
$logger->info("Generate Satellite Called in (".ENVIRONMENT.")",array('script' => $satellite_script,'script_output' => $ou));
log_message('ERROR',"Generate Satellite Called in (".ENVIRONMENT.")",array('script' => $satellite_script,'script_output' => $ou));
//return $base64_pdscore_chart_url;
if($api)