|
|
|
@ -135,21 +135,23 @@ class FenzhenController extends Controller
|
|
|
|
$push_end = false;
|
|
|
|
$push_end = false;
|
|
|
|
foreach ($clinics as $item) {
|
|
|
|
foreach ($clinics as $item) {
|
|
|
|
if (!in_array($item['keshi_id'], $clinic_map)) {
|
|
|
|
if (!in_array($item['keshi_id'], $clinic_map)) {
|
|
|
|
|
|
|
|
if(count($end_queue) == 0) {
|
|
|
|
$push_end = true;
|
|
|
|
$push_end = true;
|
|
|
|
$item_count = $item['count'];
|
|
|
|
$item_count = $item['count'];
|
|
|
|
$in_time = date('H:i', $last_time);
|
|
|
|
$in_time = date('H:i', $last_time);
|
|
|
|
$time_line = array_merge(array_splice($time_line, 0, count($time_line) - 1), [
|
|
|
|
$time_line = array_merge(array_splice($time_line, 0, count($time_line) - 1), [
|
|
|
|
[
|
|
|
|
[
|
|
|
|
"desc" => "预计 $in_time 进入队列",
|
|
|
|
"desc" => "预计 $in_time 进入队列",
|
|
|
|
"more" => 0,
|
|
|
|
"more" => 0,
|
|
|
|
"name" => $item['name'],
|
|
|
|
"name" => $item['name'],
|
|
|
|
"status" => 1,
|
|
|
|
"status" => 1,
|
|
|
|
'count' => -1,
|
|
|
|
'count' => -1,
|
|
|
|
"time" => "$in_time",
|
|
|
|
"time" => "$in_time",
|
|
|
|
"tip" => "剩余{$item_count}项正在排队中,"
|
|
|
|
"tip" => "剩余{$item_count}项正在排队中,"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
], [$time_line[count($time_line) - 1]]);
|
|
|
|
], [$time_line[count($time_line) - 1]]);
|
|
|
|
$last_time = $last_time + (60 * 5);
|
|
|
|
$last_time = $last_time + (60 * 5);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($push_end) {
|
|
|
|
if ($push_end) {
|
|
|
|
|