diff --git a/service/modules/v1/controllers/PrescriptionController.php b/service/modules/v1/controllers/PrescriptionController.php index e8e6849..aaad791 100644 --- a/service/modules/v1/controllers/PrescriptionController.php +++ b/service/modules/v1/controllers/PrescriptionController.php @@ -568,7 +568,7 @@ class PrescriptionController extends BaseAppController $doctor_order[] = '该处方有效期延长为三天内有效'; $over_time = 72*3600; } - if($repice[0]['dosage'] > 7){ + if($repice[0]['dosage']?? 0 > 7){ $doctor_order[] = '患者需长期使用此药,开具超七天用量'; } $doctor_order[] = $param['doctor_order'];