feat: 完善机巢图传、拍摄阶段与任务交互

- 完善双路 RTC 接收、首帧切换及拍摄结束后的本地播放释放
- 对齐无人机状态枚举与正常拍完返航标记,新增到达后本地倒计时
- 补充准备页电量与前往回执,进入任务时移除准备页路由
- 对齐拍摄中和拍摄完成原型布局,移除详情按钮
- 补充隔离测试、接口记录与项目约定

验证:最近 157 项相关模拟器隔离测试通过,Release 无签名编译通过;未调用真实飞控或图传。
This commit is contained in:
2026-11-03 16:43:23 +08:00
parent 0ed0077ec4
commit 54210925f0
33 changed files with 3242 additions and 205 deletions
@@ -22,7 +22,7 @@ enum DeviceCommandDebugPolicy {
/// 页面与本地拦截共用的说明,不将未发送的请求表述为服务端执行失败。
static let blockedMessage = "当前禁止真实设备指令,请使用本地模拟调试"
/// 在日志和传输之前阻断操作请求;允许的状态读取关闭实时设备采集。
/// 在日志和传输之前阻断操作请求;Release 准备页可读实时电量,其余状态读取关闭实时采集。
static func prepare(_ request: URLRequest, isLocalSimulation: Bool) throws -> URLRequest {
guard !isLocalSimulation, let url = request.url else { return request }
let path = "/" + url.path.split(separator: "/").joined(separator: "/")
@@ -43,6 +43,10 @@ enum DeviceCommandDebugPolicy {
guard request.httpMethod == "GET", readablePaths.contains(path) else {
throw DeviceCommandDebugBlockedError()
}
#if !DEBUG
// 2026-11-03 用户要求准备页获取电量;保留调用方的 live_battery,任务页仍强制读缓存。
if path == "/api/app/airport/plane-status" { return request }
#endif
let liveKey: String
switch path {
case "/api/app/airport/plane-status", "/api/app/airport/shooting": liveKey = "live_battery"