likang пре 2 година
родитељ
комит
85ae1978e6
1 измењених фајлова са 3 додато и 5 уклоњено
  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)
             if($shifouRole)
             {
             {
                 $time = $this->tagHistoryModel->where($wh)->order('addTime','desc')->value('addTime');
                 $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)
                 if(($value['addTime']-$time)<=90)
                 {
                 {
-                    $list[$key]['status']=0;
+                    $list[$key]['status']=1;
                 }
                 }
                 else
                 else
                 {
                 {
-                    $list[$key]['status']=1;
+                    $list[$key]['status']=0;
                 }
                 }
             }
             }
             $list[$key]['rssi'] = $da['rssi'];
             $list[$key]['rssi'] = $da['rssi'];