refactor attendance

This commit is contained in:
xiaomlove
2022-02-25 23:13:34 +08:00
parent 57f1e92998
commit 5ed80ed637
10 changed files with 177 additions and 40 deletions

View File

@@ -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
];
}