Browse Source

送达时间

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

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

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

Loading…
Cancel
Save