|
@@ -98,9 +98,9 @@ class User extends Permissions
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//排除过期时段
|
|
//排除过期时段
|
|
|
- $timerang = explode(' - ', $post['appointment_time']);
|
|
|
|
|
- $period_start = $timerang[0];
|
|
|
|
|
- $period_end = $timerang[1];
|
|
|
|
|
|
|
+ $timerang = explode('-', $post['appointment_time']);
|
|
|
|
|
+ $period_start = trim($timerang[0]);
|
|
|
|
|
+ $period_end = trim($timerang[1]);
|
|
|
|
|
|
|
|
if (time() > strtotime($ticket->appointment_daytime . ' ' . $period_end)) {
|
|
if (time() > strtotime($ticket->appointment_daytime . ' ' . $period_end)) {
|
|
|
$this->json_error("该时段已经过期,请重新选择时间");
|
|
$this->json_error("该时段已经过期,请重新选择时间");
|