insert($this->data()); } protected function data(): array { $created_at = date("Y-m-d H:i:s", time()); return [ [ 'title' => '车场配置', 'name' => 'parking_lot', 'content' => json_encode([ [ 'name' => 'parking_lot_id', 'value' => 666 ], [ 'name' => 'parking_lot_sum', 'value' => 1000 ], [ 'name' => 'parking_lot_image_path', 'value' => '/home/wwwroot/test/saas-8' ], [ 'name' => 'zombie_car_parking_duration', 'value' => 10 ], [ 'name' => 'numberplate_fuzzy_search', 'value' => 1 ], [ 'name' => 'automatically_clear_photo_cycle', 'value' => 10 ] ]), 'status' => 1, 'created_at' => $created_at ], [ 'title' => '第三方平台配置', 'name' => 'third_party', 'content' => json_encode([ [ 'name' => 'report_data_switch', 'value' => 1 ], [ 'name' => 'third_parking_lot_id', 'value' => 666 ], [ 'name' => 'report_api_url', 'value' => 'https://xg-saas-8.icecloud-car.cc' ], [ 'name' => 'report_cycle', 'value' => 60 ], ]), 'status' => 1, 'created_at' => $created_at ] ]; } }