From df018d87da0878557ac635a54d8ece6b696c4e8b Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 23 May 2023 17:08:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=82=A3=E8=80=85=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E4=BB=BD=E9=97=AE=E8=AF=8A=E7=97=85=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/PatientFamilyService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/PatientFamilyService.php b/app/Services/PatientFamilyService.php index 2c7368e..9aa2176 100644 --- a/app/Services/PatientFamilyService.php +++ b/app/Services/PatientFamilyService.php @@ -988,6 +988,10 @@ class PatientFamilyService extends BaseService $params['patient_id'] = $user_info['client_user_id']; $patient_family_personal = PatientFamilyPersonalModel::getOne($params); + if (empty($patient_family_health) && empty($patient_family_personal)){ + return success(null); + } + $result = array(); $result['user_id'] = $user_info['user_id']; $result['patient_id'] = $user_info['client_user_id'];