作者 lyh

gx

... ... @@ -294,7 +294,15 @@ class BTemplateLogic extends BaseLogic
* @time :2023/12/13 17:02
*/
public function saveHtml($html,$source,$source_id,$section_list_id,$template_id = 0,$is_custom = 0){
$this->saveCommonHtml($html,$source,$source_id,$template_id);//保存头部底部
$type = $this->getCustomizedType($source, $source_id);//获取定制界面类型
//查看当前页面是否定制,是否开启可视化
$page_array = (array)$this->user['is_visualization']->page_array;//获取所有定制界面
if (in_array($type, $page_array)) {//是定制界面
}
//保存头部底部
$this->saveCommonHtml($html,$source,$source_id,$template_id);
$templateInfo = $this->webTemplateInfo($template_id,$source,$source_id,$is_custom);
$handleInfo = $this->handleTemplateParam($html);
if($templateInfo === false){
... ... @@ -311,8 +319,22 @@ class BTemplateLogic extends BaseLogic
];
$this->model->edit($data,['id'=>$templateInfo['id']]);
}
return $this->success();
}
/**
* @remark :定制项目处理数据
* @name :saveCustomizedHtml
* @author :lyh
* @method :post
* @time :2023/12/15 9:38
*/
public function saveCustomizedHtml($source,$source_id)
{
return true;
}
/**
* @remark :保存公共头部底部
... ...