From 796cb60f495495a346a98fcecbf94dfbe0bc3459 Mon Sep 17 00:00:00 2001 From: velz Date: Thu, 17 Jan 2019 11:20:06 +0530 Subject: [PATCH] CAPTURE THREE LOCATIONS --- api/application/controllers/PD_Controller.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index 8c282e25..98632e40 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -533,12 +533,15 @@ class PD_Controller extends REST_Controller { unset($pd_details['mobile_no']); unset($pd_details['firstName']); unset($pd_details['officerName']); + $pd_details['initiate_location'] = $pd_details['link']; unset($pd_details['link']); $this->aws_sns->sendSMS($msg,$no); } if($pd_details['pd_status'] == STARTED) { + $pd_details['start_location'] = $pd_details['link']; + unset($pd_details['link']); $string2 = str_shuffle('1234567890'); $OTP = substr($string2,0,6); $msg = "Code for starting your personal discussions with the verification officer is ".$OTP .". Pls share this only when the officer has reached your place in person"; @@ -549,6 +552,11 @@ class PD_Controller extends REST_Controller { } + if($pd_details['pd_status'] == COMPLETED) + { + $pd_details['complete_location'] = $pd_details['link']; + } + if($pd_details['pd_status'] == TRIGGERED) {