fix remindexpire

This commit is contained in:
Tokumeikoi 2020-04-05 15:30:58 +08:00
parent 674b31675a
commit 7c3309164b

View File

@ -49,7 +49,7 @@ class SendRemindMail extends Command
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([
'email' => $user->email,
'subject' => '在' . config('v2board.app_name', 'V2board') . '的服务即将到期',