Browse Source

Merge pull request '增加药材说明' (#7) from wpd_org into master

Reviewed-on: #7
pull/9/head
pengda 8 months ago
parent
commit
ed0b5d4be6
  1. 6
      model/mFormula.php

6
model/mFormula.php

@ -503,9 +503,13 @@ class mFormula extends mBase {
foreach ($herbs as $key => $herb) { foreach ($herbs as $key => $herb) {
$org_herb[$key] = array( $org_herb[$key] = array(
'name' => trim($herb['name']), 'name' => trim($herb['name']),
'num' => $this->convertToNum(trim($herb['name']), trim($herb['num'])), 'num' => trim($herb['num']),
'desc' => trim($herb['desc']), 'desc' => trim($herb['desc']),
); );
//如果转义成功 则保存转义后的数据
$num = $this->convertToNum(trim($herb['name']), trim($herb['num']));
if ($num != 0) $org_herb[$key]['num'] = $num;
} }
//更新原方和用法 //更新原方和用法

Loading…
Cancel
Save