tongshanglei 2 år sedan
förälder
incheckning
9f39de009e
1 ändrade filer med 2 tillägg och 2 borttagningar
  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=[];