Commit da5005cc authored by hj's avatar hj

更新提交

parent 4047fb1c
......@@ -111,7 +111,10 @@ class ChemicalsMsdsService
if(preg_match('/<h2[\s]*?style=[\\\'|\"]font-size: 1.3rem;font-weight: bold[\\\'|\"]>[\s]*?(?<cTitle>第9部分 理化特性)(?<content>[\s\S]*?)<\/h2>/i', $msds_html,$content)){
if($content['content']){
$msds_html = str_replace($content['cTitle'], $content['cTitle'].'</h2>', $msds_html);
$msds_html = str_replace($content['content'], '<h2 style="font-size: 1.3rem;font-weight: bold">'.$content['content'], $msds_html);
$tableInfo = str_replace('第10部分 稳定性和反应性', '', $content['content']);
$tableInfo .= '<h2 style="font-size: 1.3rem;font-weight: bold">第10部分 稳定性和反应性</h2>';
$msds_html = str_replace($content['content'], $tableInfo, $msds_html);
}
}
if(preg_match('/<h2[\s]*?style=[\\\'|\"]font-size: 1.3rem;font-weight: bold[\\\'|\"]>[\s]*?第15部分 法规信息(?<content>[\s\S]*?)<\/h2>/i', $msds_html,$content)){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment