feat(drone-dock): 接入火山实时图传并保留禁飞保护

This commit is contained in:
2026-11-02 11:01:02 +08:00
parent c1fd2d0859
commit b21a3b6cb6
204 changed files with 112972 additions and 3274 deletions
@@ -3,13 +3,19 @@ import UIKit
/// 组装真实拍摄任务页;构造时不发请求,页面出现后才读取同一任务。
@MainActor
enum DroneDockShootingTaskEntry {
/// 使用当前共享网络服务读取已创建、已召唤任务,不创建或控制无人机。
/// 使用已有任务读取状态,Release 可手动图传;不注入任务创建或飞控服务。
static func makeController(taskID: Int, order: DroneDockHomeOrder,
context: DroneDockHomeContext) -> UIViewController {
DroneDockShootingTaskViewController(viewModel: DroneDockShootingTaskViewModel(
let client = NetworkServices.shared.apiClient
let live = DroneDockLiveViewModel(
context: context, taskID: taskID,
service: DeviceCommandDebugPolicy.blocksLiveRequests ? nil : DroneDockLiveAPI(client: client),
allowsDevicePlayback: !DeviceCommandDebugPolicy.blocksLiveRequests,
currentContext: { DroneDockHomeViewController.currentContext() })
return DroneDockShootingTaskViewController(viewModel: DroneDockShootingTaskViewModel(
context: context, taskID: taskID, order: order,
service: DroneDockShootingAPI(client: NetworkServices.shared.apiClient),
currentContext: { DroneDockHomeViewController.currentContext() }
))
), liveViewModel: live)
}
}