|
...
|
...
|
@@ -115,9 +115,7 @@ class BTemplateLogLogic extends BaseLogic |
|
|
|
$this->fail('当前数据不存在,或已被删除');
|
|
|
|
}
|
|
|
|
if(empty($info['other'])){
|
|
|
|
$commonTemplateModel = new BTemplateCommon();
|
|
|
|
$commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id'],'type'=>1]);
|
|
|
|
$info['other'] = $commonInfo['other'];
|
|
|
|
$info['other'] = str_replace('<header','',characterTruncation($info['text'],"/<link id=\"google-fonts-link\"(.*?)<header/s"));;
|
|
|
|
}
|
|
|
|
$html = $info['head_css'].$info['main_css'].$info['footer_css'].$info['other'].
|
|
|
|
$info['head_html'].$info['main_html'].$info['footer_html'];
|
...
|
...
|
|