|
|
|
@ -69,11 +69,15 @@ class AppointmentTimeService implements AppointmentTimeServiceInterface |
|
|
|
$res = []; |
|
|
|
$time1Max = max($time1Arr); |
|
|
|
$time2Min = min($time2Arr); |
|
|
|
array_push($res,$this->calculateTime($time1Max,$time2Min)); |
|
|
|
if($time2Min > $nowTime) { |
|
|
|
array_push($res, $this->calculateTime($time1Max, $time2Min)); |
|
|
|
} |
|
|
|
if(!empty($time3Arr) && !empty($time4Arr)){ |
|
|
|
$time3Max = max($time3Arr); |
|
|
|
$time4Min = min($time4Arr); |
|
|
|
array_push($res,$this->calculateTime($time3Max,$time4Min)); |
|
|
|
if($time4Min > $nowTime) { |
|
|
|
array_push($res, $this->calculateTime($time3Max, $time4Min)); |
|
|
|
} |
|
|
|
} |
|
|
|
return $res; |
|
|
|
} |
|
|
|
|