From 191878302654265a93afcb59d44cbdab06e5d59d Mon Sep 17 00:00:00 2001 From: lq Date: Mon, 2 Dec 2024 09:13:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7php=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=90=8E=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/services/PrescriptionService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/services/PrescriptionService.php b/common/services/PrescriptionService.php index 3b17ab4..66bc5db 100644 --- a/common/services/PrescriptionService.php +++ b/common/services/PrescriptionService.php @@ -56,8 +56,9 @@ class PrescriptionService{ $PharmacistIdentity= PharmacistIdentity::find()->where(['su_id'=>$prescription['pharmacist_id']])->asArray()->one(); $prescription['doctor_sign_image']=$DoctorIdentity['sign_image']; $prescription['doctor_sign_type']=$DoctorIdentity['sign_type']; - $prescription['Pharmacist_sign_image']=$PharmacistIdentity['sign_image']; - $prescription['Pharmacist_sign_type']=$PharmacistIdentity['sign_type']; + // TODO 有些错误 + $prescription['Pharmacist_sign_image']=$PharmacistIdentity['sign_image']?? ''; + $prescription['Pharmacist_sign_type']=$PharmacistIdentity['sign_type']?? ''; return $prescription; } catch (Exception $e) {