fix: 允许已确认订单再次交付成片

This commit is contained in:
2026-11-04 10:14:44 +08:00
parent 54210925f0
commit 082ecf96f2
9 changed files with 74 additions and 22 deletions
@@ -322,6 +322,15 @@ struct DroneDockHomeOrder: Decodable, Equatable, Sendable {
/// 邀请游客确认须拍满套餐次数,且后端明确允许发起确认。
var canInviteVisitorConfirmation: Bool { hasCompletedShootingQuota && canConfirm == true }
/// 已确认订单允许再次交付,兼容旧接口在完成后返回 false;旧摘要缺少订单状态时仍使用交付权限。
var canDeliverFilm: Bool {
switch orderStatus {
case 30: true
case 20, nil: canUploadFilm == true
default: false
}
}
/// 后端选定的执行中任务优先于新增拍摄;无任务时沿用交付和次数规则。
var primaryAction: String? {
if activeTaskID != nil { return "view_task" }