Open rajucs opened 4 years ago
Hello! Did you really use this library? User array looks a bit difference.
@vodvud yes i am using this library
when trying retrieve user data i am not able to get username. Machine Name : MB2000/ID
Array ( [1] => Array ( [userid] => 1 [name] => 1 [cardno] => 0000000000 [uid] => 1 [role] => 0 [password] => ) )
This is what i am getting now. In name field i am getting an id don't understand how can i get the name. Help please
Hi! I see it is device with Face Identification, maybe have different data format.
And this why you see ID only https://github.com/vodvud/php_zklib/blob/e277b4bbe3bc93d11d2aacb773bf188770d78fd8/zklib/src/User.php#L97-L99
You may try to debug each data you receive and fix it for this device. https://github.com/vodvud/php_zklib/blob/e277b4bbe3bc93d11d2aacb773bf188770d78fd8/zklib/src/User.php#L77-L95
I am not able to display username of my zkteco mb200. but its working another zkteco device. How can i retrive username? where to change in get user info function? right now it displays only id please help me to findout this problem