Browse Source

修改监控脚本频率

shensong 5 years ago
parent
commit
389ee7742a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/Console/Commands/Monitor.php

+ 4 - 1
app/Console/Commands/Monitor.php

@@ -35,7 +35,10 @@ class Monitor extends Command {
35 35
         $endTime = strtotime(date('Y-m-d 17:00:00',time()));
36 36
         $currentTime = time();
37 37
 
38
-        if($startTime > $currentTime || $endTime < $currentTime){
38
+        if($startTime > $currentTime ||
39
+            $endTime < $currentTime ||
40
+            (date('w',$currentTime)==6) ||
41
+            (date('w',$currentTime) == 0)){
39 42
             return false;
40 43
         }
41 44