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