Commit 7a40bd83 authored by hj's avatar hj

更新提交

parent d5ac334b
......@@ -32,6 +32,13 @@ class ChemicalsMsdsService
$msds_html = preg_replace('/<dt>传真:<\/dt>[\s\S]*?<dd>[\s\S]*?<\/dd>/i', '<dt>传真:<\/dt> <dd>'.$platformParams['company_fax'].'<\/dd>', $msds_html);
$msds_html = preg_replace('/<dt>联系电话:<\/dt>[\s\S]*?<dd>[\s\S]*?<\/dd>/i', '<dt>联系电话:<\/dt> <dd>'.$platformParams['company_phone'].'<\/dd>', $msds_html);
}
preg_match('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i',$msds_html, $bodyStyle);
$msds_html = preg_replace('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i', '11123', $msds_html);
$bodyStyle['bodyStyle'] = "body{ font-family: 'msyh'; font-size: 0.8rem; font-weight: bold; display: block;} " . $bodyStyle['bodyStyle'];
$msds_html = preg_replace('/11123/i', $bodyStyle['bodyStyle'], $msds_html);
$this->getPdfApp()->loadHTML($msds_html, 'utf-8');
//echo $htmlTemp;
$this->getPdfApp()->render();
......
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