Tokumeikoi 5 лет назад
Родитель
Сommit
a2278487ee
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Console/Commands/ResetTraffic.php

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

@@ -74,7 +74,7 @@ class ResetTraffic extends Command
                 array_push($users, $item->id);
             }
 
-            if (($today === $lastDay) && in_array($expireDay, ['29', '30', '31'])) {
+            if (($today === $lastDay) && $expireDay >= $lastDay) {
                 array_push($users, $item->id);
             }
         }