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)
             {
                 $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'];