添加功能
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user