From 37e39fa2d8a0453e85497a569059c142420aeee2 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Mon, 28 Sep 2020 10:38:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E6=8F=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/AppointmentTimeService.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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){