作者 lyh

gx

@@ -42,8 +42,10 @@ class CustomTemplateLogic extends BaseLogic @@ -42,8 +42,10 @@ class CustomTemplateLogic extends BaseLogic
42 */ 42 */
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 - $html = $this->getBodyHeaderFooter($info['html'],$info['html_style']);  
46 - $info['html'] = $this->getHeadFooter($html); 45 + if(!empty($info['html']) && !empty($info['html_style'])){
  46 + $html = $this->getBodyHeaderFooter($info['html'],$info['html_style']);
  47 + $info['html'] = $this->getHeadFooter($html);
  48 + }
47 if($info === false){ 49 if($info === false){
48 $this->fail('error'); 50 $this->fail('error');
49 } 51 }