Skip to content

打卡流水

Tip: 了解事件订阅的使用场景和配置流程,请点击查看 事件订阅概述

事件

用户打卡成功后,推送该用户的打卡流水消息。

事件类型

attendance.user_flow.created_v1

事件体

名称类型描述
schemastring事件模式
headerevent_header事件头
 ∟event_idstring事件 ID
 ∟event_typestring事件类型
 ∟create_timestring事件创建时间戳(单位:毫秒)
 ∟tokenstring事件 Token
 ∟app_idstring应用 ID
 ∟tenant_keystring租户 Key
event-事件体
 ∟employee_idstring飞书管理后台 > 组织架构 > 成员与部门 > 成员详情中的用户 ID
 ∟employee_nostring飞书管理后台 > 组织架构 > 成员与部门 > 成员详情中的工号
 ∟location_namestring打卡位置名称信息
 ∟check_timestring打卡时间,精确到秒的时间戳
 ∟commentstring打卡备注
 ∟record_idstring打卡记录 ID
 ∟longitudefloat打卡经度。注意:目前暂不支持返回经纬度
 ∟latitudefloat打卡纬度。注意:目前暂不支持返回经纬度
 ∟ssidstring打卡 Wi-Fi 的 SSID
 ∟bssidstring打卡 Wi-Fi 的 MAC 地址
 ∟is_fieldboolean是否为外勤打卡
 ∟is_wifiboolean是否为 Wi-Fi 打卡
 ∟typeint记录生成方式,可用值:【0(用户自己打卡),1(管理员修改),2(用户补卡),3(系统自动生成),4(下班免打卡),5(考勤机打卡),6(极速打卡),7(考勤开放平台导入)】
 ∟photo_urlsstring[]打卡照片列表
 ∟risk_resultint疑似作弊打卡行为,0:无疑似作弊,1: 疑似使用作弊软件,2:疑似使用他人的设备打卡,3:疑似多人使用同一设备打卡
回调示例
json
{
  "schema": "2.0",
  "header": {
    "event_id": "41fae5c12837ead344eced982fbde395",
    "token": "wz5vVgAqJ0cghdfdjdVuxeyTt8hvYHBg",
    "create_time": "1615381917707",
    "event_type": "attendance.user_flow.created_v1",
    "tenant_key": "2fce678eb60d1651",
    "app_id": "cli_a0c203e66cf8100c"
  },
  "event": {
    "bssid": "b0:b8:67:62:18:73",
    "check_time": "1615381916",
    "comment": "",
    "employee_id": "2b68933a",
    "employee_no": "",
    "is_field": false,
    "is_wifi": false,
    "latitude": 30.29245030908851,
    "location_name": "浙江省杭州市余杭区五常街道木桥头西溪八方城",
    "longitude": 120.04004357074373,
    "photo_urls": [],
    "record_id": "6938012269578125316",
    "ssid": "ByteDance Inc",
    "type": 0,
    "risk_result": 0
  }
}

内容来源:飞书开放平台 · 自动爬取整理