generated from liutk/owl-admin-base
admin EmployeeService.is_sign
parent
3ee46efb5d
commit
c9b8a3a969
|
|
@ -99,12 +99,14 @@ class EmployeeService extends BaseService
|
|||
'leave_at' => $options['leave_at'] ?? now(),
|
||||
'store_id' => 0,
|
||||
'employee_status' => EmployeeStatus::Offline,
|
||||
'is_sign' => 0,
|
||||
]);
|
||||
} else {
|
||||
$user->update([
|
||||
'join_at' => now(),
|
||||
'leave_at' => null,
|
||||
'employee_status' => EmployeeStatus::Online,
|
||||
'is_sign' => 1,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue