From d948226a09548dcba9c9f95286e1a5e3e80eb1f1 Mon Sep 17 00:00:00 2001 From: sa0ChunLuyu Date: Wed, 15 Jan 2025 19:57:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E4=BD=93=E6=A3=80?= =?UTF-8?q?=E5=BC=95=E5=AF=BC=E8=B0=83=E6=95=B4=20=E4=BD=93=E6=A3=80?= =?UTF-8?q?=E5=8C=BA=E5=A4=96=E7=9A=84=E8=AF=8A=E5=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/Http/Controllers/API/H5/FenzhenController.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Laravel/app/Http/Controllers/API/H5/FenzhenController.php b/Laravel/app/Http/Controllers/API/H5/FenzhenController.php index ea60187..e24b418 100644 --- a/Laravel/app/Http/Controllers/API/H5/FenzhenController.php +++ b/Laravel/app/Http/Controllers/API/H5/FenzhenController.php @@ -123,6 +123,7 @@ class FenzhenController extends Controller } if (!!$res) { $time_line = $res['data']['time_line']; + $end_queue = $res['data']['end_queue']; $clinic_map = []; foreach ($time_line as $key => $item) { if (isset($item['his_number'])) { @@ -177,6 +178,14 @@ class FenzhenController extends Controller $tip_check_show = true; $time_line[count($time_line) - 1]['status'] = 4; } + + // 插入 体检区外的 诊室 + if (count($end_queue) != 0) { + foreach ($end_queue as $end_queue_item) { + $time_line[] = $end_queue_item; + } + } + // -1 报告未出 不能预约 报告解读 不显示 // 0 时间未到 不能预约 报告解读 不显示 // 1 时间已到 可以预约 报告解读