Browse Source

送达时间

master
Lemon 5 years ago
parent
commit
7629aad5f0
  1. 7
      app/Service/v3/Implementations/AppointmentTimeService.php

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

Loading…
Cancel
Save