Face Crop : ps
This commit is contained in:
parent
f49d1732b7
commit
04e460272a
@ -4697,7 +4697,7 @@ class PD_Controller extends REST_Controller
|
|||||||
} else {
|
} else {
|
||||||
$data['pd_images']['common_images'] = $this->PD_Model->getSignedPDDocsURL($pdid, null, null, 'common', null, 'report');
|
$data['pd_images']['common_images'] = $this->PD_Model->getSignedPDDocsURL($pdid, null, null, 'common', null, 'report');
|
||||||
}
|
}
|
||||||
$db_result = $this->PD_Model->selectCustomRecords(array('facecrop'), array('fk_pd_id' => $pdid,'isactive'=>1), PDAPPLICANTSDETAILS);
|
$db_result = $this->PD_Model->selectCustomRecords(array('facecrop'), array('fk_pd_id' => $pdid,'isactive'=>1,'facemark_image_generated'=>1), PDAPPLICANTSDETAILS);
|
||||||
$fc_array = array();
|
$fc_array = array();
|
||||||
if(!empty($db_result)){
|
if(!empty($db_result)){
|
||||||
for ($dinx = 0; $dinx < count($db_result); $dinx++) {
|
for ($dinx = 0; $dinx < count($db_result); $dinx++) {
|
||||||
@ -4765,14 +4765,11 @@ class PD_Controller extends REST_Controller
|
|||||||
// {
|
// {
|
||||||
// $t = $this->load->view('report_templates/JSONTOREPORT_DI_AI_ADDON',$data,true);
|
// $t = $this->load->view('report_templates/JSONTOREPORT_DI_AI_ADDON',$data,true);
|
||||||
// }
|
// }
|
||||||
echo $t;
|
|
||||||
die();
|
|
||||||
|
|
||||||
|
|
||||||
$pd_report_time = date('Y-m-d-H-i-s');
|
$pd_report_time = date('Y-m-d-H-i-s');
|
||||||
$pd_report_store = $this->external_path . '/pd_reports/' . $pdid . '/' . $pd_report_time . '.html';
|
$pd_report_store = $this->external_path . '/pd_reports/' . $pdid . '/' . $pd_report_time . '.html';
|
||||||
$is_write_done = file_put_contents($pd_report_store, $t);
|
$is_write_done = file_put_contents($pd_report_store, $t);
|
||||||
|
die;
|
||||||
if ($is_write_done) {
|
if ($is_write_done) {
|
||||||
|
|
||||||
//$update = $this->PD_Model->updateRecords(array('pd_report_html_filename' => $pd_report_time),PDTRIGGER,array('pd_id' => $pdid));
|
//$update = $this->PD_Model->updateRecords(array('pd_report_html_filename' => $pd_report_time),PDTRIGGER,array('pd_id' => $pdid));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user