|
@@ -1011,15 +1011,15 @@ class OrderController extends BaseController
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $orderDate = $post['orderDate'] ?? '';
|
|
|
|
|
- if (!empty($orderDate)) {
|
|
|
|
|
|
|
+ $historyDate = $post['historyDate'] ?? '';
|
|
|
|
|
+ if (!empty($historyDate)) {
|
|
|
if ($book == 1) {
|
|
if ($book == 1) {
|
|
|
util::fail('预订单不能选订单日期');
|
|
util::fail('预订单不能选订单日期');
|
|
|
}
|
|
}
|
|
|
if ($hasPay == 0) {
|
|
if ($hasPay == 0) {
|
|
|
util::fail('扫码付不能选订单日期');
|
|
util::fail('扫码付不能选订单日期');
|
|
|
}
|
|
}
|
|
|
- if (strtotime($orderDate) > strtotime(date("Y-m-d"))) {
|
|
|
|
|
|
|
+ if (strtotime($historyDate) > strtotime(date("Y-m-d"))) {
|
|
|
util::fail('订单日期只能选历史时间');
|
|
util::fail('订单日期只能选历史时间');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|