diff --git a/app/Service/v3/Implementations/AppointmentTimeService.php b/app/Service/v3/Implementations/AppointmentTimeService.php index 034a34b..2e22db8 100644 --- a/app/Service/v3/Implementations/AppointmentTimeService.php +++ b/app/Service/v3/Implementations/AppointmentTimeService.php @@ -74,11 +74,13 @@ class AppointmentTimeService implements AppointmentTimeServiceInterface } if($in){ if($i === $startTime){ - $res[] = ['title'=>'尽快送达','value'=>'尽快送达']; + $res['distribution'][] = ['title'=>'尽快送达','value'=>'尽快送达']; + $res['self_take'][] = ['title'=>'尽快自提','value'=>'尽快自提']; } $data['title'] = date('H:i',$i + 30 * 60) . ' - ' . date('H:i',$i + 30 * 60 * 2); $data['value'] = date('H:i',$i + 30 * 60) . ' - ' . date('H:i',$i + 30 * 60 * 2); - $res[] = $data; + $res['distribution'][] = $data; + $res['self_take'][]= $data; } } // foreach($stores as $store){