Commit 5f736ede authored by hj's avatar hj

更新提交

parent e45853ef
...@@ -32,6 +32,12 @@ class ChemicalsMsdsService ...@@ -32,6 +32,12 @@ 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_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); $msds_html = preg_replace('/<dt>联系电话:<\/dt>[\s\S]*?<dd>[\s\S]*?<\/dd>/i', '<dt>联系电话:</dt> <dd>'.$platformParams['company_phone'].'</dd>', $msds_html);
} }
$msds_html = preg_replace('/<html>/i', '<html lang="zh_CN no-js">', $msds_html);
$msds_html = preg_replace('/<meta[\s]*?charset=[\"]UTF\-8[\"]/i', '<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">', $msds_html);
preg_match('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i',$msds_html, $bodyStyle); 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', '@body@', $msds_html); $msds_html = preg_replace('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i', '@body@', $msds_html);
......
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