tongshanglei il y a 2 ans
Parent
commit
9f39de009e
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      catch/alarm/controller/ControlAlarm.php

+ 2 - 2
catch/alarm/controller/ControlAlarm.php

@@ -72,7 +72,7 @@ class ControlAlarm extends CatchController
      * @param Request $request 
      */
     public function getTodayAlarmlist(Request $request){
-        $start_time = date('Y-m-d 00:00:00',time());
+        $start_time = date('Y-m-d 00:00:00',time()-7*24*3600);
         $end_time = date('Y-m-d 23:59:59',time());
         $xAxisData=[];
         $yAxisData=[];
@@ -93,7 +93,7 @@ class ControlAlarm extends CatchController
      * @param Request $request 
      */
     public function totalAlarmAddress(Request $request){
-        $start_time = date('Y-m-d 00:00:00',time());
+        $start_time = date('Y-m-d 00:00:00',time()-7*24*3600);
         $end_time = date('Y-m-d 23:59:59',time());
         $xAxisData=[];
         $yAxisData=[];