|
|
@ -225,7 +225,7 @@ class mCase extends mBase { |
|
|
|
} |
|
|
|
|
|
|
|
$case_ids = array(); |
|
|
|
foreach ($case as &$item){ |
|
|
|
foreach ($case as &$item) { |
|
|
|
$item['original'] = json_decode($item['original'], true); |
|
|
|
$case_ids[] = $item['id']; |
|
|
|
} |
|
|
@ -246,8 +246,8 @@ class mCase extends mBase { |
|
|
|
} |
|
|
|
|
|
|
|
$case_herb = array(); |
|
|
|
foreach ($case_herbs as $item){ |
|
|
|
$case_herb[$item['case_id']][] = $item; |
|
|
|
foreach ($case_herbs as $v) { |
|
|
|
$case_herb[$v['case_id']][] = $v; |
|
|
|
} |
|
|
|
|
|
|
|
return array('case' => $case, 'case_herb' => $case_herb, 'herb' => array_column($herb, null, 'id')); |
|
|
@ -270,6 +270,7 @@ class mCase extends mBase { |
|
|
|
$this->setError('查询不到此药方'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
$case['original'] = json_decode($case['original'], true); |
|
|
|
|
|
|
|
//药方药材信息 |
|
|
|
$case_herb = $this->getCaseHerbByCaseId($case['id']); |
|
|
|