From 78e71a3b929aa8a125c47b25af8f150509a079ba Mon Sep 17 00:00:00 2001 From: lq Date: Fri, 15 Nov 2024 10:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=B1=E8=AF=8A=E4=BA=BA?= =?UTF-8?q?=E5=81=A5=E5=BA=B7=E4=BF=A1=E6=81=AF=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- member/modules/v1/controllers/PatientController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/member/modules/v1/controllers/PatientController.php b/member/modules/v1/controllers/PatientController.php index 9d9f4ee..a260bb3 100644 --- a/member/modules/v1/controllers/PatientController.php +++ b/member/modules/v1/controllers/PatientController.php @@ -184,6 +184,9 @@ class PatientController extends BaseAppController $HealthForm->attributes = $post; $info = $HealthForm->info(); + $info['family_history'] = !empty($info['family_history']) ? explode(',', $info['family_history']) : []; + $info['person_history'] = !empty($info['person_history']) ? explode(',', $info['person_history']) : []; + $info['allergic_history'] = !empty($info['allergic_history']) ? explode(',', $info['allergic_history']) : []; return $info; if (!empty($info['family_history'])) {