Commit 1d81b176 authored by hj's avatar hj

更新提交

parent 20b5cee1
......@@ -57,7 +57,7 @@ class ChemicalsMsdsService
//$msds_html = preg_replace('/@body@/', $newMsdsHtml, $msds_html);
if(preg_match('/<div[\s]*?class=[\\\'|\"]sds-cn[\\\'|\"]>/i', $msds_html)){
$msds_html = str_replace('<div class="sds-cn">','<div class="sds-cn"><h2 style="height:100px"><img src="'.$logo.'" style="text-align:center"></h2>', $msds_html);
$msds_html = str_replace('<div class="sds-cn">','<div class="sds-cn"><h2 style="height:100px"><img src="'.$logo.'" style="text-align:center;width:220px;height:90px;"></h2>', $msds_html);
}
if(preg_match('/<div[\s]*?class=[\\\'|\"]sds-cn-header[\\\'|\"]>(?<content>[\s\S]+?)<\/div>/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