Live Issues IMGC fixes : ps
This commit is contained in:
parent
10a1ec3b39
commit
3fd3a179f8
@ -1129,7 +1129,7 @@ public function filterSalesPDList_post() {
|
|||||||
{
|
{
|
||||||
|
|
||||||
$input_data = $this->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']));
|
$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);
|
satellite_image::getSatelliteImage($input_data['smc_credit_pd'],2);
|
||||||
|
|
||||||
|
|||||||
@ -960,10 +960,10 @@ class Sales_PD_Controller extends REST_Controller {
|
|||||||
|
|
||||||
public function testAPISalesPD_post()
|
public function testAPISalesPD_post()
|
||||||
{
|
{
|
||||||
log_message('ERROR','####testAPISalesPD CALLED 439');
|
log_message('ERROR','####testAPISalesPD CALLED 2897');
|
||||||
PDALERTS::sendSalesPDMail($this,439,"Delhi");die();
|
// PDALERTS::sendSalesPDMail($this,2897,"Delhi");die();
|
||||||
//PDALERTS::sendSalesPDMail($this,32);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";
|
// $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));
|
// file_put_contents('test.jpg', file_get_contents($url));
|
||||||
}
|
}
|
||||||
@ -1063,7 +1063,7 @@ public function filterSalesPDList_post() {
|
|||||||
{
|
{
|
||||||
|
|
||||||
$input_data = $this->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']));
|
$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);
|
satellite_image::getSatelliteImage($input_data['sales_pd_id'],2);
|
||||||
|
|
||||||
|
|||||||
@ -59,10 +59,12 @@ class PDALERTS
|
|||||||
if(count($core_details))
|
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
|
//Trigger Custom Notification apart from entity and PD level notification config
|
||||||
CUSTOM_PDALERTS::custom_pdnotification($CI,$core_details);//die();
|
CUSTOM_PDALERTS::custom_pdnotification($CI,$core_details);//die();
|
||||||
//END Trigger Custom Notification apart from entity and PD level notification config
|
//END Trigger Custom Notification apart from entity and PD level notification config
|
||||||
|
}
|
||||||
|
|
||||||
$is_pd_notify_enabled = $core_details[0]['is_notify_enabled'];
|
$is_pd_notify_enabled = $core_details[0]['is_notify_enabled'];
|
||||||
$is_sms_enabled = $core_details[0]['is_sms_enabled'];
|
$is_sms_enabled = $core_details[0]['is_sms_enabled'];
|
||||||
|
|||||||
@ -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
|
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;
|
// echo 'satellite'.$pd_type;
|
||||||
|
log_message('ERROR','####Satellite IMG HELPER '.$pd_id);
|
||||||
$pdid = $pd_id;
|
$pdid = $pd_id;
|
||||||
|
|
||||||
$api_return = null;
|
$api_return = null;
|
||||||
|
|
||||||
$CI =&get_instance();
|
$CI =&get_instance();
|
||||||
$path_to_check = ($pd_type == 1 || $pd_type == 3) ? $CI->external_path.'/pd_reports/'.$pdid : $CI->external_path.'/sales_pd/'.$pdid;
|
$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;
|
$geo_location = null;
|
||||||
$pdmas = array();
|
$pdmas = array();
|
||||||
$logger = $pd_type == 1 ? MYLOG::logFunction(null,$pdid) : MYLOG::logSalesPD($pdid);
|
$logger = $pd_type == 1 ? MYLOG::logFunction(null,$pdid) : MYLOG::logSalesPD($pdid);
|
||||||
@ -109,6 +109,7 @@ class satellite_image
|
|||||||
}
|
}
|
||||||
//generate log
|
//generate log
|
||||||
$logger->info("Generate Satellite Called in (".ENVIRONMENT.")",array('script' => $satellite_script,'script_output' => $ou));
|
$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;
|
//return $base64_pdscore_chart_url;
|
||||||
|
|
||||||
if($api)
|
if($api)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user