diff --git a/service/modules/v1/controllers/PrescripDetailController.php b/service/modules/v1/controllers/PrescripDetailController.php index dc9c235..ce5662f 100644 --- a/service/modules/v1/controllers/PrescripDetailController.php +++ b/service/modules/v1/controllers/PrescripDetailController.php @@ -43,7 +43,7 @@ class PrescripDetailController extends BaseAppController ] ]; - $patient_name = $post['patient_name']; + $patient_name = $post['patient_name']?? ''; $query->joinWith(['userPatient' => function ($q) use ($patient_name) { $q->alias('up'); //搜索就诊人姓名