From 98bf7cf69914f74e1ec29811944f906953faa953 Mon Sep 17 00:00:00 2001 From: lq Date: Thu, 5 Dec 2024 16:01:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E9=94=99=E8=AF=AF=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/controllers/base/RegisterController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/controllers/base/RegisterController.php b/admin/controllers/base/RegisterController.php index b833860..60031f4 100644 --- a/admin/controllers/base/RegisterController.php +++ b/admin/controllers/base/RegisterController.php @@ -42,9 +42,9 @@ class RegisterController extends BaseAdminController ])->orderBy(['r.id' => SORT_DESC]); } - $patient = $get['patient_name']; - $mobile = $get['mobile']; - $doctor = $get['doctor_name']; + $patient = $get['patient_name']?? ''; + $mobile = $get['mobile']?? ''; + $doctor = $get['doctor_name']?? ''; $query->joinWith(['patient' => function ($p) use ($patient, $mobile) { $p->alias('p'); if (!empty($patient)) {//患者