Tokumeikoi 5 years ago
parent
commit
6b7cea671d
2 changed files with 3 additions and 2 deletions
  1. 3 2
      app/Console/Commands/ResetTraffic.php
  2. 0 0
      public/assets/admin/umi.js

+ 3 - 2
app/Console/Commands/ResetTraffic.php

@@ -52,15 +52,16 @@ class ResetTraffic extends Command
         }
     }
 
-    private function resetByMonthFirstDay(User $user):void
+    private function resetByMonthFirstDay($user):void
     {
+        if ((string)date('d') !== '1') return
         $user->update([
             'u' => 0,
             'd' => 0
         ]);
     }
 
-    private function resetByExpireDay(User $user):void
+    private function resetByExpireDay($user):void
     {
         $date = date('Y-m-d', time());
         $startAt = strtotime((string)$date);

File diff suppressed because it is too large
+ 0 - 0
public/assets/admin/umi.js


Some files were not shown because too many files changed in this diff