|
...
|
...
|
@@ -482,10 +482,10 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
$comTemplateModel = new BTemplateCom();
|
|
|
|
//还原头部底部
|
|
|
|
$header_type = $this->getType(BTemplate::COMMON_HEAD);
|
|
|
|
$comTemplateModel->edit(['html'=>$logInfo['other']],['template_id'=>$logInfo['template_id'],'type'=>$header_type,'project_id'=>$this->user['project_id'],'common_type'=>BTemplate::COMMON_OTHER]);
|
|
|
|
$comTemplateModel->edit(['html'=>$logInfo['head_html'], 'html_style'=>$logInfo['head_css']],['template_id'=>$logInfo['template_id'],'type'=>$header_type,'project_id'=>$this->user['project_id'],'common_type'=>BTemplate::COMMON_HEAD]);
|
|
|
|
$comTemplateModel->edit(['html'=>$logInfo['other']],['template_id'=>$logInfo['template_id'],'source'=>$header_type,'project_id'=>$this->user['project_id'],'common_type'=>BTemplate::COMMON_OTHER]);
|
|
|
|
$comTemplateModel->edit(['html'=>$logInfo['head_html'], 'html_style'=>$logInfo['head_css']],['template_id'=>$logInfo['template_id'],'source'=>$header_type,'project_id'=>$this->user['project_id'],'common_type'=>BTemplate::COMMON_HEAD]);
|
|
|
|
$footer_type = $this->getType(BTemplate::COMMON_FOOTER);
|
|
|
|
$comTemplateModel->edit(['html'=>$logInfo['footer_html'], 'html_style'=>$logInfo['footer_css']],['template_id'=>$logInfo['template_id'],'type'=>$footer_type,'project_id'=>$this->user['project_id'],'common_type'=>BTemplate::COMMON_FOOTER]);
|
|
|
|
$comTemplateModel->edit(['html'=>$logInfo['footer_html'], 'html_style'=>$logInfo['footer_css']],['template_id'=>$logInfo['template_id'],'source'=>$footer_type,'project_id'=>$this->user['project_id'],'common_type'=>BTemplate::COMMON_FOOTER]);
|
|
|
|
$this->model->edit(['html'=>$logInfo['main_html'],'html_style'=>$logInfo['main_css']],['id'=>$logInfo['source_id']]);
|
|
|
|
}else{
|
|
|
|
$this->model->edit(['html'=>$logInfo['text']],['id'=>$logInfo['source_id']]);
|
...
|
...
|
|