Browse Source

Merge pull request '药方识别' (#28) from wpd_shibie5 into master

Reviewed-on: #28
pull/29/head
pengda 7 months ago
parent
commit
f363c5f6d3
  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