tongshanglei 2 年 前
コミット
9f39de009e
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  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 
      * @param Request $request 
      */
      */
     public function getTodayAlarmlist(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());
         $end_time = date('Y-m-d 23:59:59',time());
         $xAxisData=[];
         $xAxisData=[];
         $yAxisData=[];
         $yAxisData=[];
@@ -93,7 +93,7 @@ class ControlAlarm extends CatchController
      * @param Request $request 
      * @param Request $request 
      */
      */
     public function totalAlarmAddress(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());
         $end_time = date('Y-m-d 23:59:59',time());
         $xAxisData=[];
         $xAxisData=[];
         $yAxisData=[];
         $yAxisData=[];