|
@@ -135,7 +135,7 @@ class Station extends Model
|
|
|
|
|
|
if($value=='1'){
|
|
|
if(!$config){
|
|
|
- return $query->where('online_state', 1)->whereOr('online_state','null');
|
|
|
+ return $query->where('online_state', 1)->whereOr('online_state','null')->whereOr('online_state','');
|
|
|
}
|
|
|
return $query->where('online_time', '>=', $time)->whereOr('online_state','=', 1);
|
|
|
}elseif($value=='2'){
|