药方识别 #28

Merged
pengda merged 1 commits from wpd_shibie5 into master 7 months ago
  1. 2
      model/mFormula.php

2
model/mFormula.php

@ -335,7 +335,7 @@ class mFormula extends mBase {
if ($matches) {
$herb_name = str_replace(array('(', ')'), '', trim($matches[1] . $matches[2]));
$herb_num = str_replace(array('(', ')'), '', trim($matches[3] . $matches[4]));
$herb_desc = isset($matches[5]) ? str_replace(array('(', ')'), '', trim($matches[4])) : "";
$herb_desc = isset($matches[5]) ? str_replace(array('(', ')'), '', trim($matches[5])) : "";
$herb_arr[] = array(
'herb_name' => $herb_name,

Loading…
Cancel
Save