likang hace 2 años
padre
commit
ccc39242ee
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      catch/tag_history/controller/TagHistory.php

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

@@ -148,6 +148,8 @@ class TagHistory extends CatchController
              ];
            
             $list[$key]['status']=1;
+            $list[$key]['rssi'] = $da['rssi'];
+            $list[$key]['move'] = $da['move'];
             //1 在线 0 离线
             if($shifouRole)
             {
@@ -156,11 +158,11 @@ class TagHistory extends CatchController
                 if((time()-$value['addTime'])>90)
                 {
                     $list[$key]['status']=0;
+                    $list[$key]['rssi']=0;
                 }
                
             }
-            $list[$key]['rssi'] = $da['rssi'];
-            $list[$key]['move'] = $da['move'];
+          
             $list[$key]['step'] = $da['step'];
             $list[$key]['temperature'] = $da['temperature'];
             $list[$key]['addTime'] = date('Y-m-d H:i:s', $value['addTime']);