mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
refactor attendance
This commit is contained in:
@@ -11,4 +11,14 @@ class Attendance extends NexusModel
|
||||
protected $casts = [
|
||||
'added' => 'datetime',
|
||||
];
|
||||
|
||||
const INITIAL_BONUS = 10;
|
||||
const STEP_BONUS = 5;
|
||||
const MAX_BONUS = 1000;
|
||||
const CONTINUOUS_BONUS = [
|
||||
10 => 200,
|
||||
20 => 500,
|
||||
30 => 1000
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user