瀏覽代碼

天地伟业同步摄像头修改

任敬轩 3 年之前
父節點
當前提交
8154cc3966
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/Console/Commands/UpdateHkList.php

+ 2 - 0
app/Console/Commands/UpdateHkList.php

@@ -216,6 +216,8 @@ class UpdateHkList extends Command
                                 $device_index_code[$j] = $device_list['content'][$j]['sId'];
                             }
                         }
+                        //删除不存在的摄像头
+                        CameraList::where('mine_id', $mine_id)->where('index_code', '!=', NULL)->whereNotIn('index_code', $device_index_code)->delete();
                     }
                 }
             }