Add detailed logging for attendance processing: include start time and process details, and comment out end time log

This commit is contained in:
2025-06-27 15:59:20 +07:00
parent 72f311aaff
commit 27492fc088

View File

@ -84,9 +84,10 @@ 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'];
echo "start time : ".date("Y-m-d H:i:s")." Process dates ".$d['timestamp'].", FingerId : ".$rw['fingerid']." \n";
$res=$this->fn_setattendance($d, $rw['deviceip']);
if($res){
$qryupdate="update tbl_attendancelogs set isprocess=1,processdate=now() where _idx='".$rw['_idx']."'";
@ -713,7 +714,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;