songxingwei 2 년 전
부모
커밋
36e14a1a9d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/api/controller/Timedtask.php

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

@@ -117,7 +117,7 @@ class Timedtask
         if ($now_hour>7 && $now_hour<16){
             $all = Db::name('system_day')->where('date',date('Y-m-d'))->value('now_value');
             if ($all>0){
-                $now_time = date('Y-m-d 07:00:00');
+                $now_time = date('Y-m-d H:i:s');
                 $end_time = date('Y-m-d 16:00:00');
                 $strto = strtotime($end_time)-strtotime($now_time);
                 $num = ceil($all/($strto/5));