From 09d597fcf726c8ca7e044d07ec37b10b7880b19b Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 15 Aug 2024 21:59:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(OrderLogic):=20=E6=9B=B4=E6=96=B0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BC=98=E5=8C=96=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E8=AE=A2=E5=8D=95=E5=A4=84=E7=90=86=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=97=B6=E9=97=B4=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/order/OrderLogic.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/logic/order/OrderLogic.php b/app/api/logic/order/OrderLogic.php index d93a61c26..e80e14777 100644 --- a/app/api/logic/order/OrderLogic.php +++ b/app/api/logic/order/OrderLogic.php @@ -263,7 +263,8 @@ class OrderLogic extends BaseLogic // 使用DateTime::format()方法获取时间并比较 if ($currentTime->format('H:i') > $fourPM->format('H:i')) { - $alert='当前时间超过配送截止时间16:00,如下单,配送时间将顺延至次日'; + $currentDate = date('Y-m-d'); + $alert='当前时间超过配送截止时间16:00,若下单,物品送达时间为'.date('Y-m-d', strtotime($currentDate. '+2 days')); } } catch (\Exception $e) { self::setError($e->getMessage());