|
...
|
...
|
@@ -42,8 +42,10 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function customTemplateInfo(){
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']]);
|
|
|
|
$html = $this->getBodyHeaderFooter($info['html'],$info['html_style']);
|
|
|
|
$info['html'] = $this->getHeadFooter($html);
|
|
|
|
if(!empty($info['html']) && !empty($info['html_style'])){
|
|
|
|
$html = $this->getBodyHeaderFooter($info['html'],$info['html_style']);
|
|
|
|
$info['html'] = $this->getHeadFooter($html);
|
|
|
|
}
|
|
|
|
if($info === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
...
|
...
|
|