From 7629aad5f0de72a90d445395af218580f7ee74d5 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Thu, 17 Sep 2020 21:25:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=81=E8=BE=BE=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/AppointmentTimeService.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Service/v3/Implementations/AppointmentTimeService.php b/app/Service/v3/Implementations/AppointmentTimeService.php index a59b7ce..37714c8 100644 --- a/app/Service/v3/Implementations/AppointmentTimeService.php +++ b/app/Service/v3/Implementations/AppointmentTimeService.php @@ -100,7 +100,12 @@ class AppointmentTimeService implements AppointmentTimeServiceInterface if($nowTime > $startTime){ $startTime = ceil($nowTime / (30*60)) * (30*60); } - //if(isset($closedTime) && ) + if (env('APP_ENV') === 'prod') { + $closedTime = strtotime(config('market.rest_time')); + if($closedTime < $endTime){ + $endTime = $closedTime; + } + } //高峰段 区间 $peakPeriod = strtotime('16:00'); $peakPeriodEnd = strtotime('18:00');