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(),
|
'leave_at' => $options['leave_at'] ?? now(),
|
||||||
'store_id' => 0,
|
'store_id' => 0,
|
||||||
'employee_status' => EmployeeStatus::Offline,
|
'employee_status' => EmployeeStatus::Offline,
|
||||||
|
'is_sign' => 0,
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
$user->update([
|
$user->update([
|
||||||
'join_at' => now(),
|
'join_at' => now(),
|
||||||
'leave_at' => null,
|
'leave_at' => null,
|
||||||
'employee_status' => EmployeeStatus::Online,
|
'employee_status' => EmployeeStatus::Online,
|
||||||
|
'is_sign' => 1,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue