tongshanglei 2 년 전
부모
커밋
1968b6bcb8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      catch/device/model/Station.php

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

@@ -131,7 +131,7 @@ class Station extends Model
     {
         $time=date('Y-m-d H:i:s',time()-300);
         if($value=='1'){
-            return $query->where('online_time', '>=', $time);
+            return $query->where('online_time', '>=', $time)->whereOr('online_state','=', 1);
         }elseif($value=='2'){
             return $query->where(function ($query) use( $time) {
                 $query->whereOr('online_time','<', $time)->whereOr('online_time','=', null);