Browse Source

送达时间

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

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

@ -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;
}

Loading…
Cancel
Save