Commit 19e936f1 authored by hj's avatar hj

更新提交0

parent dda6f5d7
......@@ -27,10 +27,10 @@ class ChemicalsMsdsService
if($msds_html){
if(!is_null($comInfo)){
$platformParams = json_decode($comInfo['platform_params'], true);
$msds_html = preg_replace('/<dt>企业名称:<\/dt>[\s\S]*?<dd>[\s\S]*?<\/dd>/i', '<dt>企业名称:<\/dt> <dd>'.$platformParams['company_name'].'<\/dd>', $msds_html);
$msds_html = preg_replace('/<dt>企业地址:<\/dt>[\s\S]*?<dd>[\s\S]*?<\/dd>/i', '<dt>企业地址:<\/dt> <dd>'.$platformParams['company_address'].'<\/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_name'].'</dd>', $msds_html);
$msds_html = preg_replace('/<dt>企业地址:<\/dt>[\s\S]*?<dd>[\s\S]*?<\/dd>/i', '<dt>企业地址:</dt> <dd>'.$platformParams['company_address'].'</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);
}
preg_match('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i',$msds_html, $bodyStyle);
......
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