浏览代码

天地伟业视频列表同步

任敬轩 3 年之前
父节点
当前提交
da3e3d12a3
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      Modules/Camera/Entities/CameraList.php
  2. 4 4
      app/Console/Commands/UpdateHkList.php

+ 1 - 1
Modules/Camera/Entities/CameraList.php

@@ -10,5 +10,5 @@ class CameraList extends Model
     protected $table        = 'camera_list';
     public    $incrementing = false;
     protected $keyType      = 'string';
-    protected $fillable     = ['mine_id', 'index_code', 'camera_name', 'camera_source', 'revert_id', 'ip', 'port', 'com_number','user_name','password','camera_url','sort','video_recorder'];
+    protected $fillable     = ['mine_id', 'index_code', 'camera_name', 'camera_source', 'revert_id', 'ip', 'port', 'com_number','sort','video_recorder'];
 }

+ 4 - 4
app/Console/Commands/UpdateHkList.php

@@ -160,9 +160,9 @@ class UpdateHkList extends Command
                         'mine_id'       => $mine_id,
                         'ip'            => '10.71.177.215',
                         'port'          => 1554,
-                        'user_name'     => 'admin1',
-                        'password'      => 'Td123..',
-                        'camera_url'    => $camera_url['content'][0]['url'],
+//                        'user_name'     => 'admin1',
+//                        'password'      => 'Td123..',
+//                        'camera_url'    => $camera_url['content'][0]['url'],
                         'revert_id'     => CameraEnum::CAMERA_DEFAULT_REVERT_ID,
                         'sort'          => sizeof($device_list['content']) - $i,
                         'camera_name'   => $device_list['content'][$i]['sName'],
@@ -170,7 +170,7 @@ class UpdateHkList extends Command
                         'index_code'    => $device_list['content'][$i]['sId'],
                         'video_recorder'=> CameraEnum::VIDEO_RECORDER_TD,
                     ];
-//                    CameraList::updateOrCreate(['index_code' => $device_list['content'][$i]['sId']], $params);
+                    CameraList::updateOrCreate(['index_code' => $device_list['content'][$i]['sId']], $params);
                 }
              }
          }