|
...
|
...
|
@@ -80,15 +80,13 @@ class BTemplateLogic extends BaseLogic |
|
|
|
$mainInfo = $this->getMAinHtml($this->param['source'],$is_custom,$is_list);//获取中间部分代码
|
|
|
|
}else{
|
|
|
|
if($templateInfo['type'] == BTemplate::ALL_HTML){//返回整个html代码
|
|
|
|
$type = $this->getCustomizedType($this->param['source'], $is_list);//获取头部底部类型
|
|
|
|
$commonInfo = $this->getCommonHtml($type,$is_list,0);//获取定制头部
|
|
|
|
$commonInfo = $this->getCommonHtml($this->param['source'],$is_list,0);//获取定制头部
|
|
|
|
$html = $this->handleAllHtml($commonInfo,$templateInfo['html']);
|
|
|
|
return $this->success(['html'=>$html,'template_id'=>$template_id,'id'=>$templateInfo['id'],'updated_at'=>$templateInfo['updated_at']]);
|
|
|
|
}
|
|
|
|
$mainInfo = ['main_html'=>$templateInfo['main_html'], 'main_css'=>$templateInfo['main_css']];
|
|
|
|
}
|
|
|
|
$type = $this->getCustomizedType($this->param['source'], $is_list);//获取头部底部类型
|
|
|
|
$commonInfo = $this->getCommonHtml($type,$is_list,$template_id);//获取定制头部
|
|
|
|
$commonInfo = $this->getCommonHtml($this->param['source'],$is_list,$template_id);//获取定制头部
|
|
|
|
$html = $commonInfo['head_css'].$mainInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other'].
|
|
|
|
$commonInfo['head_html'].$mainInfo['main_html'].$commonInfo['footer_html'];
|
|
|
|
$html = $this->getHeadFooter($html);
|
...
|
...
|
|