正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -482,10 +482,10 @@ class CustomTemplateLogic extends BaseLogic | @@ -482,10 +482,10 @@ class CustomTemplateLogic extends BaseLogic | ||
| 482 | $comTemplateModel = new BTemplateCom(); | 482 | $comTemplateModel = new BTemplateCom(); |
| 483 | //还原头部底部 | 483 | //还原头部底部 |
| 484 | $header_type = $this->getType(BTemplate::COMMON_HEAD); | 484 | $header_type = $this->getType(BTemplate::COMMON_HEAD); |
| 485 | - $comTemplateModel->edit(['html'=>$logInfo['other']],['template_id'=>$logInfo['template_id'],'type'=>$header_type,'project_id'=>$this->user['project_id'],'common_type'=>BTemplate::COMMON_OTHER]); | ||
| 486 | - $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]); | 485 | + $comTemplateModel->edit(['html'=>$logInfo['other']],['template_id'=>$logInfo['template_id'],'source'=>$header_type,'project_id'=>$this->user['project_id'],'common_type'=>BTemplate::COMMON_OTHER]); |
| 486 | + $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]); | ||
| 487 | $footer_type = $this->getType(BTemplate::COMMON_FOOTER); | 487 | $footer_type = $this->getType(BTemplate::COMMON_FOOTER); |
| 488 | - $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]); | 488 | + $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]); |
| 489 | $this->model->edit(['html'=>$logInfo['main_html'],'html_style'=>$logInfo['main_css']],['id'=>$logInfo['source_id']]); | 489 | $this->model->edit(['html'=>$logInfo['main_html'],'html_style'=>$logInfo['main_css']],['id'=>$logInfo['source_id']]); |
| 490 | }else{ | 490 | }else{ |
| 491 | $this->model->edit(['html'=>$logInfo['text']],['id'=>$logInfo['source_id']]); | 491 | $this->model->edit(['html'=>$logInfo['text']],['id'=>$logInfo['source_id']]); |
-
请 注册 或 登录 后发表评论