Explorar o código

fix remindtraffic

Tokumeikoi %!s(int64=5) %!d(string=hai) anos
pai
achega
674b31675a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Console/Commands/SendRemindMail.php

+ 1 - 1
app/Console/Commands/SendRemindMail.php

@@ -66,7 +66,7 @@ class SendRemindMail extends Command
     {
         if ($this->remindTrafficIsWarnValue(($user->u + $user->d), $user->transfer_enable)) {
             $sendCount = MailLog::where('created_at', '>=', strtotime(date('Y-m-1')))
-                ->where('template_name', 'mail.sendRemindTraffic')
+                ->where('template_name', 'like', '%remindTraffic%')
                 ->count();
             if ($sendCount > 0) return;
             SendEmailJob::dispatch([