|
...
|
...
|
@@ -42,11 +42,11 @@ 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($info === false){
|
|
|
|
$this->fail('error');
|
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
|
|
|
$html = $this->getBodyHeaderFooter($info['html'],$info['html_style']);
|
|
|
|
$info['html'] = $this->getHeadFooter($html);
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|