Browse Source

送达时间

master
Lemon 5 years ago
parent
commit
be6ac60172
  1. 4
      app/Service/v3/Implementations/AppointmentTimeService.php

4
app/Service/v3/Implementations/AppointmentTimeService.php

@ -48,7 +48,7 @@ class AppointmentTimeService implements AppointmentTimeServiceInterface
} }
//当前时间小于 开始营业时间 //当前时间小于 开始营业时间
$time1 = strtotime(($store['time1'])); $time1 = strtotime(($store['time1']));
if($nowTime < $time1){
if($nowTime < ($time1+60*30)){
return $store['name'].'店铺已打烊'; return $store['name'].'店铺已打烊';
} }
$time2 = strtotime(($store['time2'])); $time2 = strtotime(($store['time2']));
@ -61,7 +61,7 @@ class AppointmentTimeService implements AppointmentTimeServiceInterface
}else{ }else{
$endTime = $time2; $endTime = $time2;
} }
if($nowTime > $endTime){
if(($nowTime+60*30) > $endTime){
return $store['name'].'店铺已打烊'; return $store['name'].'店铺已打烊';
} }
array_push($time1Arr,$time1); array_push($time1Arr,$time1);

Loading…
Cancel
Save