mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-27 15:50:43 +00:00
fix: 打卡提醒失效
This commit is contained in:
parent
2b7ed69c21
commit
ce7037d317
@ -69,7 +69,7 @@ class CheckinRemindTask extends AbstractTask
|
|||||||
User::whereNull('disable_at')->chunk(100, function ($users) use ($type, $botUser) {
|
User::whereNull('disable_at')->chunk(100, function ($users) use ($type, $botUser) {
|
||||||
/** @var User $user */
|
/** @var User $user */
|
||||||
foreach ($users as $user) {
|
foreach ($users as $user) {
|
||||||
if (UserCheckinRecord::whereUserid($user->userid)->whereDate(date("Y-m-d"))->exists()) {
|
if (UserCheckinRecord::whereUserid($user->userid)->where('date', date("Y-m-d"))->exists()) {
|
||||||
continue; // 已打卡
|
continue; // 已打卡
|
||||||
}
|
}
|
||||||
if (!UserCheckinRecord::whereUserid($user->userid)->where('created_at', '>', Carbon::now()->subDays(3))->exists()) {
|
if (!UserCheckinRecord::whereUserid($user->userid)->where('created_at', '>', Carbon::now()->subDays(3))->exists()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user