作者 lyh

gx

@@ -43,9 +43,10 @@ class CustomTemplateLogic extends BaseLogic @@ -43,9 +43,10 @@ class CustomTemplateLogic extends BaseLogic
43 public function customTemplateInfo(){ 43 public function customTemplateInfo(){
44 $info = $this->model->read(['id'=>$this->param['id']]); 44 $info = $this->model->read(['id'=>$this->param['id']]);
45 if(!empty($info['html']) && !empty($info['html_style'])){ 45 if(!empty($info['html']) && !empty($info['html_style'])){
46 - $html = $this->getBodyHeaderFooter($info['html'],$info['html_style']);  
47 - $info['html'] = $this->getHeadFooter($html); 46 +
48 } 47 }
  48 + $html = $this->getBodyHeaderFooter($info['html'],$info['html_style']);
  49 + $info['html'] = $this->getHeadFooter($html);
49 if($info === false){ 50 if($info === false){
50 $this->fail('error'); 51 $this->fail('error');
51 } 52 }