songxingwei 2 年之前
父節點
當前提交
d2c5eb0cc5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/api/controller/Timedtask.php

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

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