作者 lyh

gx

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