[api] add notifications

This commit is contained in:
xiaomlove
2022-03-31 16:28:08 +08:00
parent 3e4a5766c4
commit f91cd6f20a
28 changed files with 274 additions and 44 deletions
+2 -2
View File
@@ -75,8 +75,8 @@ class AttendanceRepository extends BaseRepository
->where('uid', $uid)
->orderBy('id', 'desc');
if (!empty($date)) {
$query->where('added', '>=', Carbon::today())
->where('added', '<', Carbon::tomorrow());
$query->where('added', '>=', Carbon::parse($date)->startOfDay())
->where('added', '<=', Carbon::parse($date)->endOfDay());
}
return $query->first();
}