feat: 接入景区空境库真实素材并统一交付入口

接通场次详情、分页、视频时长与大小,修复日期筛选越界并增加脱敏日志。统一订单与素材库交付方式弹窗,保留任务预选和上传批次,补充模拟器回归测试与接口记录。
This commit is contained in:
2026-10-30 12:11:48 +08:00
parent 20877b425c
commit 0bc801f399
29 changed files with 2350 additions and 203 deletions
@@ -6,8 +6,8 @@ import UIKit
protocol DroneMaterialsViewControllerDelegate: AnyObject {
/// 预览单项素材,保持素材库现有选择与下载批次。
func materialsViewController(_ controller: DroneMaterialsViewController, didRequestPreview material: DroneMaterial)
/// 请求交付成片,并由当前拍摄记录预选点位。
func materialsViewController(_ controller: DroneMaterialsViewController, didRequestDelivery record: DroneMaterialRecord)
/// 请求先选择交付方式;指定拍摄记录时保留点位预选,整批入口不猜测目标点位。
func materialsViewController(_ controller: DroneMaterialsViewController, didRequestDelivery record: DroneMaterialRecord?)
}
/// 订单素材库:按拍摄记录分组,支持点位筛选、独立预览选择与前台演示下载。
@@ -453,22 +453,11 @@ final class DroneMaterialsViewController: BaseViewController {
present(alert, animated: true)
}
/// 完成底栏的交付入口先明确拍摄记录,不根据下载批次猜测目标点位。
/// 完成底栏也先选交付方式;多记录批次在选择云端后再由用户选点位。
private func chooseCompletedDelivery() {
guard delegate != nil, !viewModel.sections.isEmpty else { return }
if viewModel.sections.count == 1, let record = viewModel.sections.first {
delegate?.materialsViewController(self, didRequestDelivery: record)
return
}
let sheet = UIAlertController(title: "选择拍摄记录", message: "选择需要交付成片的拍摄记录", preferredStyle: .actionSheet)
for record in viewModel.sections {
sheet.addAction(UIAlertAction(title: "\(record.pointName) · 记录\(record.sequenceNumber)", style: .default) { [weak self] _ in
guard let self else { return }
self.delegate?.materialsViewController(self, didRequestDelivery: record)
})
}
sheet.addAction(UIAlertAction(title: "取消", style: .cancel))
present(sheet, animated: true)
let record = viewModel.sections.count == 1 ? viewModel.sections.first : nil
delegate?.materialsViewController(self, didRequestDelivery: record)
}
private func updateInteractivePopGesture() {