|
...
|
...
|
@@ -376,28 +376,4 @@ class VisualizationLogic extends BaseLogic |
|
|
|
}
|
|
|
|
return $commonInfo;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :保存首页头部底部信息
|
|
|
|
* @name :saveHomeHeaderFooter
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/11/16 11:14
|
|
|
|
*/
|
|
|
|
public function saveHomeHeaderFooter($template_id,$aTemplateInfo){
|
|
|
|
$data = [
|
|
|
|
'other'=>str_replace('<header','',characterTruncation($aTemplateInfo['html'],"/<link id=\"google-fonts-link\"(.*?)<header/s")),
|
|
|
|
'head_html'=>$aTemplateInfo['head_html'],
|
|
|
|
'footer_html'=>$aTemplateInfo['footer_html'],
|
|
|
|
'head_css'=>$aTemplateInfo['head_css'],
|
|
|
|
'footer_css'=>$aTemplateInfo['footer_css'],
|
|
|
|
'template_id'=>$template_id,
|
|
|
|
'project_id'=>$this->user['project_id'],
|
|
|
|
'type'=>1,
|
|
|
|
];
|
|
|
|
//保存首页头部信息
|
|
|
|
$templateCommonModel = new BTemplateCommon();
|
|
|
|
$templateCommonModel->add($data);
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|