feat(order): 统一网站自交接订单24小时自动完成倒计时

This commit is contained in:
yml
2026-11-30 17:05:49 +08:00
parent 295c88dd2f
commit 2992885a6d
32 changed files with 996 additions and 23 deletions
@@ -144,6 +144,10 @@ func orderListingTerms(snapshot datatypes.JSON) (days int, dailyLossM float64) {
return days, roundQuantity(dailyLossM)
}
func EstimateOrderDurationHours(snapshot datatypes.JSON) int {
return estimateOrderDurationHours(snapshot)
}
func estimateOrderDurationHours(snapshot datatypes.JSON) int {
hafCoinM := readOrderSnapshotCoinM(snapshot)
if hafCoinM <= 0 {