完善机巢任务实时同步并开放双构建真实操作

订阅明确无缓存时使用新发起的有效 HTTP 全量响应衔接首包,保留任务、批次和版本校验。
移除 Debug/Release 的设备指令、图传和 RTC 构建拦截,保留后端权限、身份、防重复提交及结果未知保护。
更新开发约定并补充隔离传输、飞控状态和页面回归测试。

验证:iPhone 真机 500 项相关测试通过;iOS Release 无签名编译通过。
This commit is contained in:
2026-11-05 10:59:26 +08:00
parent 477bf611e6
commit 34ee60b8b2
46 changed files with 914 additions and 461 deletions
@@ -3,7 +3,7 @@ import UIKit
/// 组装真实拍摄任务页;构造时不发请求,页面出现后才读取同一任务。
@MainActor
enum DroneDockShootingTaskEntry {
/// 使用已有任务读取状态;Release 注入已授权的真实控制,Debug 保持只读。
/// 使用已有任务读取状态,两种构建均注入真实服务并按后端权限操作。
static func makeController(taskID: Int, order: DroneDockHomeOrder,
context: DroneDockHomeContext) -> UIViewController {
makeController(taskID: taskID, order: order, context: context, coverURL: nil)
@@ -20,15 +20,15 @@ enum DroneDockShootingTaskEntry {
identityIsCurrent: { context.hasSameIdentity(as: DroneDockHomeViewController.currentContext()) })
let live = DroneDockLiveViewModel(
context: context, taskID: taskID,
service: DeviceCommandDebugPolicy.blocksLiveRequests ? nil : DroneDockLiveAPI(client: client),
allowsDevicePlayback: !DeviceCommandDebugPolicy.blocksLiveRequests,
service: DroneDockLiveAPI(client: client),
allowsDevicePlayback: true,
currentContext: { DroneDockHomeViewController.currentContext() })
return DroneDockShootingTaskViewController(viewModel: DroneDockShootingTaskViewModel(
context: context, taskID: taskID, order: order,
service: DroneDockShootingAPI(client: client),
startService: DeviceCommandDebugPolicy.blocksFlightRequests ? nil : DroneDockStartShootAPI(client: client),
commandService: DeviceCommandDebugPolicy.blocksFlightRequests ? nil : DroneDockCommandAPI(client: client),
resummonService: DeviceCommandDebugPolicy.blocksFlightRequests ? nil : DroneDockShootAPI(client: client),
startService: DroneDockStartShootAPI(client: client),
commandService: DroneDockCommandAPI(client: client),
resummonService: DroneDockShootAPI(client: client),
initialSummonReceipt: initialSummonReceipt,
currentContext: { DroneDockHomeViewController.currentContext() }
), liveViewModel: live, coverURL: coverURL, realtimeSession: realtime)