diff --git a/app/Service/v3/Implementations/AppointmentTimeService.php b/app/Service/v3/Implementations/AppointmentTimeService.php index 01a98fa..7359bce 100644 --- a/app/Service/v3/Implementations/AppointmentTimeService.php +++ b/app/Service/v3/Implementations/AppointmentTimeService.php @@ -48,7 +48,7 @@ class AppointmentTimeService implements AppointmentTimeServiceInterface } //当前时间小于 开始营业时间 $time1 = strtotime(($store['time1'])); - if($nowTime < $time1){ + if($nowTime < ($time1+60*30)){ return $store['name'].'店铺已打烊'; } $time2 = strtotime(($store['time2'])); @@ -61,7 +61,7 @@ class AppointmentTimeService implements AppointmentTimeServiceInterface }else{ $endTime = $time2; } - if($nowTime > $endTime){ + if(($nowTime+60*30) > $endTime){ return $store['name'].'店铺已打烊'; } array_push($time1Arr,$time1);