likang 2 gadi atpakaļ
vecāks
revīzija
87c4d381ab
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      catch/tag_history/controller/TagHistory.php

+ 2 - 2
catch/tag_history/controller/TagHistory.php

@@ -248,9 +248,9 @@ class TagHistory extends CatchController
             } elseif ($t1['temperWarn'] == '10') {
                 $t1['temperWarn'] = '高温告警';
             }
-            $list[]=$t1;
+            array_push($list,$t1);
         }
-        var_dump(json_encode($list));
+       // var_dump(json_encode($list));
         // $list = $this->tagHistoryModel->where($where)
         // ->field('mac,lable,step,addTime,time')->select()->toArray();
     }