songxingwei %!s(int64=2) %!d(string=hai) anos
pai
achega
57c8ca9629
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      application/api/controller/Timedtask.php

+ 1 - 1
application/api/controller/Timedtask.php

@@ -125,7 +125,7 @@ class Timedtask
             $now_time1 = date('Y-m-d 14:00:00');
             $end_time1 = date('Y-m-d 16:30:00');
             $strto = (strtotime($end_time)-strtotime($now_time))+(strtotime($end_time1)-strtotime($now_time1));
-            $num = ceil($all/($strto/6));
+            $num = ceil($all/($strto/5));
             $num_array =array();
             for ($i=$num-2;$i<=$num+2;$i++){
                 if ($i>0){