From d15293b16a8b0a03fdc372cbede4f2a1faf44601 Mon Sep 17 00:00:00 2001 From: velz Date: Sun, 7 Oct 2018 01:04:12 +0530 Subject: [PATCH] PD 3 --- api/application/controllers/PD_Controller.php | 12 ++++++------ api/application/helpers/pdalerts_helper.php | 4 ++-- api/application/libraries/AWS_SNS.php | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index bef7e436..743f19bb 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -213,7 +213,7 @@ class PD_Controller extends REST_Controller { $pd_details['fk_pd_allocated_to'] = null; $where_condition_array = array('fk_city_id' => $pd_details['fk_city'],'fk_lender_id' => $pd_details['fk_lender_id']); $temp_city_id = $this->PD_Model->selectRecords(PDTEAMMAP,$where_condition_array,$limit=0,$offset=0); - print_r($temp_city_id); + //print_r($temp_city_id); if(count($temp_city_id)) { if(isset($temp_city_id[0]['team_type'])) @@ -226,20 +226,20 @@ class PD_Controller extends REST_Controller { } else //Allocate to SineEdge Team with allocation logics { - echo "SineEdge TEAm"; + //echo "SineEdge TEAm"; $local_pd_allocation_type = $pd_details['fk_pd_allocation_type']; if($local_pd_allocation_type == 1)// AUTO - Load Balance Allocation { - echo "AUTO LOAD"; + //echo "AUTO LOAD"; //select list of pd officers based on pd type, product, customer segment, and team from table (t_pd_officiers_details) and choose minimun allocated one and assign pd Officer and change status form TRIGGERED to ALLOCATED $fields = array('fk_user_id','allocated'); $where_condition_array = array('fk_pd_type_id' => $pd_details['fk_pd_type'],'fk_team_id' => $temp_city_id[0]['fk_team_id'],'fk_customer_segment' => $pd_details['fk_customer_segment'],'fk_product_id' => $pd_details['fk_product_id'],'isactive' => 1); $list_of_pd_officers = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,PDOFFICIERSDETAILS); - echo "PD OFF"; - print_r($list_of_pd_officers); + //echo "PD OFF"; + //print_r($list_of_pd_officers); $allocated_values = array_column($list_of_pd_officers,'allocated'); $min_allocated = min($allocated_values); @@ -252,7 +252,7 @@ class PD_Controller extends REST_Controller { $pd_details['fk_pd_allocated_to'] = $final_pd_officer_to_allocate; $pd_details['fk_pd_status'] = ALLOCATED; - echo "final".$final_pd_officer_to_allocate; + //echo "final".$final_pd_officer_to_allocate; } else if($local_pd_allocation_type == 2) // AUTO - NEAREST Allocation diff --git a/api/application/helpers/pdalerts_helper.php b/api/application/helpers/pdalerts_helper.php index 873b4b82..e0d64a57 100644 --- a/api/application/helpers/pdalerts_helper.php +++ b/api/application/helpers/pdalerts_helper.php @@ -15,7 +15,7 @@ class PDALERTS */ public static function pdnotification($pdid) { - echo "called"; + //echo "called"; if($pdid != "" || $pdid != null) { @@ -114,7 +114,7 @@ class PDALERTS $no = (string)$no; - echo "SNSNO-".$no; + //echo "SNSNO-".$no; $CI->aws_sns->sendSMS($msg,$no); } diff --git a/api/application/libraries/AWS_SNS.php b/api/application/libraries/AWS_SNS.php index dc6ff0b2..60619e7a 100644 --- a/api/application/libraries/AWS_SNS.php +++ b/api/application/libraries/AWS_SNS.php @@ -35,7 +35,7 @@ class AWS_SNS // "PhoneNumber" => "+917402014940" // ); $mobile_no = "+91".$mobile_no; - echo 'IN SNS--'.$mobile_no; + //echo 'IN SNS--'.$mobile_no; $args = array( "MessageAttributes" => [ 'AWS.SNS.SMS.SenderID' => [