@@ -21,7 +21,13 @@ trait StationGet
}
public function getIsOnlineAttr($value){
- return 1;
+ $value = strtotime($this->online_time);
+ $int=time()-$value;
+ if($int>120){
+ return '0';
+ }else{
+ return '1';
+ }