diff --git a/server/app/api/logic/OrderLogic.php b/server/app/api/logic/OrderLogic.php index 54a5e966..2efaa720 100644 --- a/server/app/api/logic/OrderLogic.php +++ b/server/app/api/logic/OrderLogic.php @@ -923,6 +923,15 @@ class OrderLogic extends Logic $order_data['coupon_list_id'] = $coupon_list_id; $order_data['create_time'] = time(); + // 前置订单 + $order_data['is_frontend'] = 0; + if (!empty($post['is_frontend'])) { + $order_data['is_frontend'] = 1; + $order_data['pay_status'] = OrderEnum::PAY_STATUS_PAID; + $order_data['pay_way'] = OrderEnum::PAY_WAY_OFFLINE; + $order_data['pay_time'] = time(); + } + $order_create = $Order->create($order_data); if (false === $order_create) {