作者 lyh

gx

@@ -54,6 +54,9 @@ class CustomTemplateLogic extends BaseLogic @@ -54,6 +54,9 @@ class CustomTemplateLogic extends BaseLogic
54 */ 54 */
55 public function customTemplateSave(){ 55 public function customTemplateSave(){
56 if(isset($this->param['id']) && !empty($this->param['id'])){ 56 if(isset($this->param['id']) && !empty($this->param['id'])){
  57 + if(isset($this->param['html']) && !empty($this->param['html'])){
  58 + $this->param['html'] = $this->getHeadFooter(characterTruncation($this->param['html'],'/<style id="vvvebjs-header">(.*?)<\/footer>/s'));
  59 + }
57 $rs = $this->model->edit($this->param,['id'=>$this->param['id']]); 60 $rs = $this->model->edit($this->param,['id'=>$this->param['id']]);
58 }else{ 61 }else{
59 $this->param['project_id'] = $this->user['project_id']; 62 $this->param['project_id'] = $this->user['project_id'];