feat(drone-dock): 接入素材下载并限制拍满后游客确认
This commit is contained in:
@@ -270,6 +270,10 @@ struct DroneShootingOrder: Hashable, Sendable {
|
||||
|
||||
/// 剩余次数只由成功数计算;查看任务、上传和交付不扣次。
|
||||
var remainingShootingCount: Int { max(0, totalShootingCount - successfulShootingCount) }
|
||||
/// 本地演示与真实订单一致,拍满有效套餐次数后才展示游客确认入口。
|
||||
var hasCompletedShootingQuota: Bool {
|
||||
totalShootingCount > 0 && successfulShootingCount >= totalShootingCount
|
||||
}
|
||||
/// 拍摄进度,防止除零或异常值溢出进度条。
|
||||
var progress: Double {
|
||||
guard totalShootingCount > 0 else { return 0 }
|
||||
|
||||
Reference in New Issue
Block a user