diff --git a/model/mUserCase.php b/model/mUserCase.php index ed92171..923bcad 100644 --- a/model/mUserCase.php +++ b/model/mUserCase.php @@ -82,6 +82,7 @@ class mUserCase extends mBase { //格式化医案开药详情 $prescribe_herb = $this->formatUserCaseHerbs($uid, $data['prescribe_herb']); + if(!$prescribe_herb){$this->setError('医案开药详情不正确');return false;} $data['prescribe_herb'] = $prescribe_herb; $data['case_id'] = $case['id'];