| xqd
@@ -205,7 +205,13 @@ class DocterController extends AuthController
|
|
|
$can_appoint_num = $docterSettings['service_num'] - $v1['order_num'];
|
|
|
$v1['can_appoint_num'] = $can_appoint_num < 0 ? 0 : $can_appoint_num;
|
|
|
}
|
|
|
+ //预约时间已经过了,就不展示了
|
|
|
+ $schedule_time = strtotime($v1['schedule_date'].' '.$v1['time_period']['end_time_period'].':00');
|
|
|
+ if ($schedule_time < time()) {
|
|
|
+ unset($v['schedule_period'][$k1]);
|
|
|
+ }
|
|
|
}
|
|
|
+ $v['schedule_period'] = array_values($v['schedule_period']);
|
|
|
}
|
|
|
}
|
|
|
|