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) {