Compare commits
2 Commits
29180b036c
...
cc58529145
| Author | SHA1 | Date | |
|---|---|---|---|
| cc58529145 | |||
| b6cdc09849 |
@ -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'],
|
||||
|
||||
@ -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){
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user