likang před 2 roky
rodič
revize
5db99002dc
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      catch/api/controller/Api.php

+ 3 - 3
catch/api/controller/Api.php

@@ -5,7 +5,7 @@
  * @Author: likang
  * @Date: 2022-08-12 10:33:24
  * @LastEditors: likang 1186820806@qq.com
- * @LastEditTime: 2023-04-11 15:01:54
+ * @LastEditTime: 2023-04-14 10:34:28
  */
 
 
@@ -41,7 +41,7 @@ class Api extends CatchController
         }
         $data = [];
         foreach ($param['list'] as $item) {
-           $onetime= TagHistory::where("mac",$mac)->where('lable',$item['label'])->order("id","desc")->value("time");
+          // $onetime= TagHistory::where("mac",$mac)->where('lable',$item['label'])->order("id","desc")->value("time");
             $data[] = [
                 'mac' => $mac,
                 'lable' => $item['label'],
@@ -53,7 +53,7 @@ class Api extends CatchController
                 'temperature' => empty($item['temperature']) ? 0 : $item['temperature'],
                 //告警
                 'temperWarn' => empty($item['temperWarn']) ? 00 : $item['temperWarn'],
-                "interval_time"=>empty($onetime) ?0:($item['time']-$onetime)
+               // "interval_time"=>empty($onetime) ?0:($item['time']-$onetime)
             ];
         }
         $tage = new TagHistory();