From a7ef54db77260a91d7bbde0f9114c65dfed129df Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Wed, 16 Aug 2023 10:54:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=8B=E5=8D=95=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=EF=BC=9A=E8=AE=A2=E5=8D=95=E5=89=8D=E7=BD=AE=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/app/api/logic/OrderLogic.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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) {