likang 2 years ago
parent
commit
85ae1978e6
1 changed files with 3 additions and 5 deletions
  1. 3 5
      catch/tag_history/controller/TagHistory.php

+ 3 - 5
catch/tag_history/controller/TagHistory.php

@@ -131,16 +131,14 @@ class TagHistory extends CatchController
             if($shifouRole)
             {
                 $time = $this->tagHistoryModel->where($wh)->order('addTime','desc')->value('addTime');
-                var_dump($time);
-                var_dump($value['addTime']);
-                var_dump($value['addTime']-$time);
+               
                 if(($value['addTime']-$time)<=90)
                 {
-                    $list[$key]['status']=0;
+                    $list[$key]['status']=1;
                 }
                 else
                 {
-                    $list[$key]['status']=1;
+                    $list[$key]['status']=0;
                 }
             }
             $list[$key]['rssi'] = $da['rssi'];