likang %!s(int64=2) %!d(string=hai) anos
pai
achega
87c4d381ab
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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();
     }