diff --git a/getdatadevices.php b/getdatadevices.php index 5d03ed3..05a5c12 100644 --- a/getdatadevices.php +++ b/getdatadevices.php @@ -98,7 +98,7 @@ class LogController // "deviceIP" => $ip // ]; // echo json_encode($att)."\n"; - $res=$this->fn_setattendance($att, $ip); + // $res=$this->fn_setattendance($att, $ip); $reslog=$this->fn_setattendancelogs($att, $ip); $data[] = [ "fingerid" => $att['id'], diff --git a/getdatadevicesbylogs.php b/getdatadevicesbylogs.php index 1ef0e9b..f8a80aa 100644 --- a/getdatadevicesbylogs.php +++ b/getdatadevicesbylogs.php @@ -84,9 +84,11 @@ class LogController if($rs){ $d=array(); while($rw=$rs->fetch()){ + echo "start time : ".date("Y-m-d H:i:s")."\n"; $d['timestamp']=date("Y-m-d H:i:s", strtotime($rw['dates'].' '.$rw['times'])); $d['id']=$rw['fingerid']; $res=$this->fn_setattendance($d, $rw['deviceip']); + echo "End time : ".date("Y-m-d H:i:s")."\n\n"; } } @@ -533,7 +535,7 @@ class LogController $qryduration=""; $rs=$this->selectquerySP($qry); if($rs){ - echo "start time : ".date("Y-m-d H:i:s")."\n"; + while($rw=$rs->fetch()){ $swhereshiftcode=""; if($rw['shiftcode']&&$rw['idxdept']==22){ diff --git a/getdatadevicesbylogsbydates.php b/getdatadevicesbylogsbydates.php index 00cda81..0739b27 100644 --- a/getdatadevicesbylogsbydates.php +++ b/getdatadevicesbylogsbydates.php @@ -83,10 +83,12 @@ class LogController $rs=$this->selectquerySP($qry); if($rs){ $d=array(); - while($rw=$rs->fetch()){ + while($rw=$rs->fetch()){ + echo "start time : ".date("Y-m-d H:i:s")."\n"; $d['timestamp']=date("Y-m-d H:i:s", strtotime($rw['dates'].' '.$rw['times'])); $d['id']=$rw['fingerid']; $res=$this->fn_setattendance($d, $rw['deviceip']); + echo "End time : ".date("Y-m-d H:i:s")."\n\n"; } } @@ -533,7 +535,7 @@ class LogController $qryduration=""; $rs=$this->selectquerySP($qry); if($rs){ - echo "start time : ".date("Y-m-d H:i:s")."\n"; + // echo "start time : ".date("Y-m-d H:i:s")."\n"; while($rw=$rs->fetch()){ $swhereshiftcode=""; if($rw['shiftcode']&&$rw['idxdept']==22){ @@ -697,7 +699,7 @@ class LogController } } - echo "end time : ".date("Y-m-d H:i:s")."\n"; + // echo "end time : ".date("Y-m-d H:i:s")."\n"; } $rtn=true; return $rtn;