From be6ac601727f173753fbb8ef3ddf15424639ff1c Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Mon, 14 Sep 2020 21:09:20 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);