Jelajahi Sumber

handler refill_order_stat_ex update 86400

xiaoyu 3 tahun lalu
induk
melakukan
df0c0f505c
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      helper/task/handler.php

+ 3 - 3
helper/task/handler.php

@@ -70,12 +70,12 @@ class handler
         {
             [$start, $end] = $time_scope['order_time'];
 
-            for ($cur_start = $start; $cur_start < $end; $cur_start += 3600)
+            for ($cur_start = $start; $cur_start < $end; $cur_start += 86400)
             {
-                if ($cur_start + 3600 >= $end) {
+                if ($cur_start + 86400 >= $end) {
                     $cur_end = $end;
                 } else {
-                    $cur_end = $cur_start + 3600;
+                    $cur_end = $cur_start + 86400;
                 }
 
                 $tmcond = $tmcond_gen($cur_start, $cur_end);