|
@@ -153,14 +153,11 @@ class TagHistory extends CatchController
|
|
{
|
|
{
|
|
$time = $this->tagHistoryModel->where($wh)->max('addTime');
|
|
$time = $this->tagHistoryModel->where($wh)->max('addTime');
|
|
|
|
|
|
- if(($value['addTime']-$time)<=90)
|
|
|
|
- {
|
|
|
|
- $list[$key]['status']=1;
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
|
|
+ if((time()-$value['addTime'])>90)
|
|
{
|
|
{
|
|
$list[$key]['status']=0;
|
|
$list[$key]['status']=0;
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
$list[$key]['rssi'] = $da['rssi'];
|
|
$list[$key]['rssi'] = $da['rssi'];
|
|
$list[$key]['move'] = $da['move'];
|
|
$list[$key]['move'] = $da['move'];
|