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