Code Revert : ps
This commit is contained in:
parent
9d8e793e56
commit
c4b28bbb30
@ -10490,15 +10490,15 @@ class PD_Controller extends REST_Controller
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function toMakeFaceBoundingBox_get(){
|
//public function toMakeFaceBoundingBox_get(){
|
||||||
// public function toMakeFaceBoundingBox($master_details)
|
public function toMakeFaceBoundingBox($master_details)
|
||||||
// {
|
{
|
||||||
$pdid = $this->get('pd');//pdid 3184 comment this
|
// $pdid = $this->get('pd');//pdid 3184 comment this
|
||||||
// $pdid = $master_details[0]['pd_id'];
|
$pdid = $master_details[0]['pd_id'];
|
||||||
log_message('ERROR', "In PD Controller (to Make FaceBoundingBox called ) PDID : " . $pdid);
|
log_message('ERROR', "In PD Controller (to Make FaceBoundingBox called ) PDID : " . $pdid);
|
||||||
$bounding_box = array();
|
$bounding_box = array();
|
||||||
if (!empty($pdid)) {
|
if (!empty($pdid)) {
|
||||||
$master_details = $this->PD_Model->getPDMasterDetails($pdid);//comment this
|
//$master_details = $this->PD_Model->getPDMasterDetails($pdid);//comment this
|
||||||
if ($master_details[0]['facemark_image_generated']) {
|
if ($master_details[0]['facemark_image_generated']) {
|
||||||
log_message('ERROR', "In PD Controller Facemark Image Generated : " . $master_details[0]['facemark_image_generated']);
|
log_message('ERROR', "In PD Controller Facemark Image Generated : " . $master_details[0]['facemark_image_generated']);
|
||||||
$db_result = $this->PD_Model->selectCustomRecords(array('faceapi_result'), array('pd_id' => $pdid), PDTRIGGER);
|
$db_result = $this->PD_Model->selectCustomRecords(array('faceapi_result'), array('pd_id' => $pdid), PDTRIGGER);
|
||||||
@ -10545,21 +10545,21 @@ class PD_Controller extends REST_Controller
|
|||||||
$this->PD_Model->saveRecords($record_data, PDDOCUMENTS);
|
$this->PD_Model->saveRecords($record_data, PDDOCUMENTS);
|
||||||
unlink($destination_path);
|
unlink($destination_path);
|
||||||
}
|
}
|
||||||
$data['dataStatus'] = true;
|
//$data['dataStatus'] = true;
|
||||||
$data['status'] = REST_Controller::HTTP_OK;
|
//$data['status'] = REST_Controller::HTTP_OK;
|
||||||
$data['msg'] = 'Success ';
|
//$data['msg'] = 'Success ';
|
||||||
$data['details'] = $bounding_box;
|
//$data['details'] = $bounding_box;
|
||||||
} else {
|
} else {
|
||||||
log_message('ERROR', "In PD Controller to Make FaceBoundingBox Faceapi Image Already Generated");
|
log_message('ERROR', "In PD Controller to Make FaceBoundingBox Faceapi Image Already Generated");
|
||||||
$data['dataStatus'] = false;
|
//$data['dataStatus'] = false;
|
||||||
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
//$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||||
$data['msg'] = 'Faceapi Image Already Generated';
|
//$data['msg'] = 'Faceapi Image Already Generated';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
log_message('ERROR', "In PD Controller to Make FaceBoundingBox PDID is Not Available");
|
log_message('ERROR', "In PD Controller to Make FaceBoundingBox PDID is Not Available");
|
||||||
$data['dataStatus'] = false;
|
//$data['dataStatus'] = false;
|
||||||
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
//$data['status'] = REST_Controller::HTTP_NO_CONTENT;
|
||||||
$data['msg'] = 'PDID is Not Available';
|
//$data['msg'] = 'PDID is Not Available';
|
||||||
}
|
}
|
||||||
$this->response($data,REST_Controller::HTTP_OK);
|
$this->response($data,REST_Controller::HTTP_OK);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user