修复预计 截止时间

This commit is contained in:
yml
2026-06-17 23:10:38 +08:00
parent f8156aec44
commit 0add23dedb
8 changed files with 162 additions and 3 deletions
@@ -211,6 +211,7 @@ export function getSnapshotHafCoinM(order: Order | null) {
}
export function orderEstimatedEndAt(order: Order | null) {
if (order?.estimated_end_at) return order.estimated_end_at
const rentedAt = order?.rented_at
const durationHours = Number(order?.estimated_duration_hours || 0)
if (!rentedAt || durationHours <= 0) return undefined