订单时间
This commit is contained in:
@@ -352,7 +352,7 @@ class OrderController extends BaseMiniController
|
|||||||
return;
|
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) {
|
$allowed = match (true) {
|
||||||
// 跨天时段:当晚开始时间之后 或 次日截单时间之前
|
// 跨天时段:当晚开始时间之后 或 次日截单时间之前
|
||||||
$start !== null && $end !== null && $start > $end => $now >= $start || $now <= $end,
|
$start !== null && $end !== null && $start > $end => $now >= $start || $now <= $end,
|
||||||
|
|||||||
Reference in New Issue
Block a user