tongshanglei hace 2 años
padre
commit
7c8aa7cc52
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      catch/device/model/Station.php

+ 1 - 1
catch/device/model/Station.php

@@ -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'){