mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 11:09:11 +08:00
fix remindexpire
This commit is contained in:
parent
674b31675a
commit
7c3309164b
@ -49,7 +49,7 @@ class SendRemindMail extends Command
|
|||||||
|
|
||||||
private function remindExpire($user)
|
private function remindExpire($user)
|
||||||
{
|
{
|
||||||
if (($user->expired_at - 86400) < time() && $user->expired_at > time()) {
|
if ($user->expired_at !== NULL && ($user->expired_at - 86400) < time() && $user->expired_at > time()) {
|
||||||
SendEmailJob::dispatch([
|
SendEmailJob::dispatch([
|
||||||
'email' => $user->email,
|
'email' => $user->email,
|
||||||
'subject' => '在' . config('v2board.app_name', 'V2board') . '的服务即将到期',
|
'subject' => '在' . config('v2board.app_name', 'V2board') . '的服务即将到期',
|
||||||
|
Loading…
Reference in New Issue
Block a user