添加功能

This commit is contained in:
zhou
2025-06-04 23:14:01 +08:00
parent 05a60a376e
commit 8dfb893eeb
@@ -77,6 +77,24 @@ class AppletAttendance(Controller):
'state_result': ' ',
'check_in': [' ', '未打卡'],
'check_out': [' ', '未打卡']}
elif not check_in and is_early_card:
return {
'location': '%s' % address_id.address_name2,
'user_id': user_id,
'state': 'yes',
'class':attendance_class,
'state_result': ' ',
'check_in': [' ', '未打卡'],
'check_out': [' ', '迟到']}
elif not check_out and is_late_card:
return {
'location': '%s' % address_id.address_name2,
'user_id': user_id,
'state': 'yes',
'class':attendance_class,
'state_result': ' ',
'check_in': [' ', '迟到'],
'check_out': [' ', '未打卡']}
elif not check_out and not is_late_card:
return {
'location': '%s' % address_id.address_name2,