mirror of
https://github.com/v2board/v2board.git
synced 2025-02-11 07:59:11 +08:00
fix remindtraffic
This commit is contained in:
parent
b2c33cd31b
commit
674b31675a
@ -66,7 +66,7 @@ class SendRemindMail extends Command
|
|||||||
{
|
{
|
||||||
if ($this->remindTrafficIsWarnValue(($user->u + $user->d), $user->transfer_enable)) {
|
if ($this->remindTrafficIsWarnValue(($user->u + $user->d), $user->transfer_enable)) {
|
||||||
$sendCount = MailLog::where('created_at', '>=', strtotime(date('Y-m-1')))
|
$sendCount = MailLog::where('created_at', '>=', strtotime(date('Y-m-1')))
|
||||||
->where('template_name', 'mail.sendRemindTraffic')
|
->where('template_name', 'like', '%remindTraffic%')
|
||||||
->count();
|
->count();
|
||||||
if ($sendCount > 0) return;
|
if ($sendCount > 0) return;
|
||||||
SendEmailJob::dispatch([
|
SendEmailJob::dispatch([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user