订单时间

This commit is contained in:
liu
2026-09-22 13:22:15 +08:00
parent e4ba90bbbb
commit 2ca0ac4c22
@@ -352,7 +352,7 @@ class OrderController extends BaseMiniController
return;
}
$now = (int) now()->format('H') * 60 + (int) now()->format('i');
$now = (int) now('Asia/Shanghai')->format('H') * 60 + (int) now('Asia/Shanghai')->format('i');
$allowed = match (true) {
// 跨天时段:当晚开始时间之后 或 次日截单时间之前
$start !== null && $end !== null && $start > $end => $now >= $start || $now <= $end,