|
...
|
...
|
@@ -38,6 +38,7 @@ class InitHtmlLogic extends BaseLogic |
|
|
|
$template_id = $this->getTemplateId();
|
|
|
|
$is_custom = $this->param['is_custom'] ?? 0;//TODO::1:代表扩展模块
|
|
|
|
$is_list = $this->param['is_list'] ?? 0;//TODO::1:代表分类列表模块
|
|
|
|
$data = array();
|
|
|
|
//获取设置的默认中间部分
|
|
|
|
$bTemplateMainModel = new BTemplateMain();
|
|
|
|
$mainInfo = $bTemplateMainModel->read(['project_id'=>$this->user['project_id'],'type'=>$this->param['type'],'is_list'=>$is_list,'is_custom'=>$is_custom]);
|
|
...
|
...
|
@@ -47,11 +48,14 @@ class InitHtmlLogic extends BaseLogic |
|
|
|
}else{
|
|
|
|
$main_html = $mainInfo['main_html'];
|
|
|
|
$main_style = $mainInfo['main_css'];
|
|
|
|
$data['id'] = $mainInfo['id'];
|
|
|
|
$data['updated_at'] = $mainInfo['updated_at'];
|
|
|
|
}
|
|
|
|
$commonInfo = $this->getCommonHtml($this->param['type'],$is_list,$template_id,$is_custom); //获取头部
|
|
|
|
$html = $commonInfo['head_css'].$main_style.$commonInfo['footer_css'].$commonInfo['other'].$commonInfo['head_html'].$main_html.$commonInfo['footer_html'];
|
|
|
|
$html = $this->getHeadFooter($html);//组装数据
|
|
|
|
return $this->success($html);
|
|
|
|
$data['html'] = $html;
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|