fix: 允许已确认订单再次交付成片
This commit is contained in:
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user