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');