钉钉事件订阅考勤事件数据格式

环境
php 7.2
thinkphp6
钉钉指纹考勤机
目的:官方文档locationMethod只有两种,观察考勤机考勤标识
一 手机签到考勤事件格式

{
    
    "DataList":[{
    
    "address":"你的地址,定位数据","checkTime":1611758364000,"corpId":"你自己的","groupId":"你自己的","latitude":37.88690402560764,"bizId":"96F80A3482ED39EF5A9B20EEC2717C75","locationMethod":"MAP","checkByUser":true,"userId":"你自己的","longitude":116.54321994357639}],"EventType":"attendance_check_record"}

二 考勤机考勤事件格式

{
    
    "DataList":[{
    
    "address":"测试门禁_80692","baseMacAddr":"xx:xx:xx:xx:xx:xx","checkTime":1611793083000,"corpId":"你自己的","groupId":"你自己的","bizId":"E6C151496AC6DF9FE68D6AEED5824667","locationMethod":"ATM","checkByUser":true,"deviceName":"测试门禁_80692","deviceSN":"xxxxxxxxxxxx","userId":"xxxxxxxxxxxx"}],"EventType":"attendance_check_record"}

以上可以看出
考勤机打卡多出多个字段,文档中并没有
我关注的主要有

"locationMethod":"ATM",
"deviceSN":"xxxxxxxxxxxx",

猜你喜欢

转载自blog.csdn.net/taogunet/article/details/113307177