SAPLES PD SATELIITE SEPARATED
This commit is contained in:
parent
aabf11403f
commit
001259b5bb
@ -271,4 +271,5 @@ $route['getSalesPDSectionData'] = 'Sales_PD_Controller/getSalesPDSectionData';
|
|||||||
$route['testAPISalesPD'] = 'Sales_PD_Controller/testAPISalesPD';
|
$route['testAPISalesPD'] = 'Sales_PD_Controller/testAPISalesPD';
|
||||||
$route['salesPDMisReport'] = 'Sales_PD_Controller/salesPDMisReport';
|
$route['salesPDMisReport'] = 'Sales_PD_Controller/salesPDMisReport';
|
||||||
$route['filterSalesPDList']='Sales_PD_Controller/filterSalesPDList';
|
$route['filterSalesPDList']='Sales_PD_Controller/filterSalesPDList';
|
||||||
|
$route['generateSatelliteImg']='Sales_PD_Controller/generateSatelliteImg';
|
||||||
|
|
||||||
|
|||||||
@ -461,10 +461,11 @@ class Sales_PD_Controller extends REST_Controller {
|
|||||||
if($records['img_name'] == 'selfie_with_person_met')
|
if($records['img_name'] == 'selfie_with_person_met')
|
||||||
{
|
{
|
||||||
//$location = $records['location'];
|
//$location = $records['location'];
|
||||||
$update_fields = array('geo_location' => $records['location']);
|
//$update_fields = array('geo_location' => $records['location']);
|
||||||
$this->Sales_PD_Model->updateRecords($update_fields,SALES_PD_DATA,array('sales_pd_id' => $records['fk_sales_pd_id']));
|
//$this->Sales_PD_Model->updateRecords($update_fields,SALES_PD_DATA,array('sales_pd_id' => $records['fk_sales_pd_id']));
|
||||||
|
|
||||||
satellite_image::getSatelliteImage($records['fk_sales_pd_id'],2);
|
|
||||||
|
//satellite_image::getSatelliteImage($records['fk_sales_pd_id'],2);
|
||||||
|
|
||||||
//disable previous selfie img
|
//disable previous selfie img
|
||||||
$update_fields2 = array('isactive' => 0);
|
$update_fields2 = array('isactive' => 0);
|
||||||
@ -938,6 +939,23 @@ public function filterSalesPDList_post() {
|
|||||||
$data['msg'] = 'No Records Found';
|
$data['msg'] = 'No Records Found';
|
||||||
$this->response($data,REST_Controller::HTTP_OK);
|
$this->response($data,REST_Controller::HTTP_OK);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function generateSatelliteImg_post()
|
||||||
|
{
|
||||||
|
|
||||||
|
$input_data = $this->post();
|
||||||
|
|
||||||
|
$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);
|
||||||
|
|
||||||
|
$data['dataStatus'] = true;
|
||||||
|
$data['status'] = REST_Controller::HTTP_OK;
|
||||||
|
$data['records'] = $id;
|
||||||
|
$this->response($data,REST_Controller::HTTP_OK);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ class PUSH_NOTIFICATION
|
|||||||
(
|
(
|
||||||
'message'=> $msg,
|
'message'=> $msg,
|
||||||
'body'=> $msg,
|
'body'=> $msg,
|
||||||
'title'=> $msg,
|
//'title'=> $msg,
|
||||||
'subtitle'=> $msg,
|
'subtitle'=> $msg,
|
||||||
'tickerText'=> $msg,
|
'tickerText'=> $msg,
|
||||||
'vibrate'=>1,
|
'vibrate'=>1,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user