vodvud / php_zklib

GNU General Public License v2.0
24 stars 19 forks source link

Getting userid 0 #23

Open rajucs opened 4 years ago

rajucs commented 4 years ago

I am getting userid 0 after 2000 Attendance log from my local machine. how can increase the size? Please help

vodvud commented 4 years ago

Hi. Solution is cleaning attendance records on device after you getting and inserting to DB

See https://github.com/vodvud/php_zklib/issues/1#issuecomment-366863422

rajucs commented 4 years ago

isn't there any option to get more than this data with out removing device data? image

image

Not 2000 its give me userid 0 after 200 records. Then i fix it with using UID but its not solution. i think.

but it was okay some days ago.

vodvud commented 4 years ago

Hi! Sometimes it can be depends device version or network stability.

The best solution is often to receive data from the device and clean it up, for example once an hour or less.

rajucs commented 4 years ago

Thanks For clarification. https://github.com/vodvud/php_zklib/issues/1#issuecomment-366863422 So i am not able to load data more than 4000 and also getting 0 value if its more than 2000 attendance data

rajucs commented 4 years ago

I already delete all data and trying to add data to database only there is 150 row but still userid showing 0 don't understand.

vodvud commented 4 years ago

Hello!

Looks like your device send some different format of data. Try to debug response here https://github.com/vodvud/php_zklib/blob/e277b4bbe3bc93d11d2aacb773bf188770d78fd8/zklib/src/Attendance.php#L32