作者 lyh

gx

@@ -76,8 +76,6 @@ class VisualizationLogic extends BaseLogic @@ -76,8 +76,6 @@ class VisualizationLogic extends BaseLogic
76 } 76 }
77 $ATemplateModel = new Template(); 77 $ATemplateModel = new Template();
78 $aTemplateInfo = $ATemplateModel->read(['id'=>$settingInfo['template_id']]); 78 $aTemplateInfo = $ATemplateModel->read(['id'=>$settingInfo['template_id']]);
79 - //保存一次公共头部底部  
80 - $this->saveHomeHeaderFooter($settingInfo['template_id'],$aTemplateInfo);  
81 //截取链接部分 79 //截取链接部分
82 $other = str_replace('<header','',characterTruncation($aTemplateInfo['html'],"/<link id=\"google-fonts-link\"(.*?)<header/s")); 80 $other = str_replace('<header','',characterTruncation($aTemplateInfo['html'],"/<link id=\"google-fonts-link\"(.*?)<header/s"));
83 //根据类型在获取中间部分 81 //根据类型在获取中间部分
@@ -278,6 +276,7 @@ class VisualizationLogic extends BaseLogic @@ -278,6 +276,7 @@ class VisualizationLogic extends BaseLogic
278 ]; 276 ];
279 //保存首页头部信息 277 //保存首页头部信息
280 $templateCommonModel = new BTemplateCommon(); 278 $templateCommonModel = new BTemplateCommon();
  279 + //查询头部是否存在
281 $templateCommonModel->add($data); 280 $templateCommonModel->add($data);
282 return $this->success(); 281 return $this->success();
283 } 282 }