|
@@ -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'];
|