作者 lyh

gx

@@ -294,7 +294,15 @@ class BTemplateLogic extends BaseLogic @@ -294,7 +294,15 @@ class BTemplateLogic extends BaseLogic
294 * @time :2023/12/13 17:02 294 * @time :2023/12/13 17:02
295 */ 295 */
296 public function saveHtml($html,$source,$source_id,$section_list_id,$template_id = 0,$is_custom = 0){ 296 public function saveHtml($html,$source,$source_id,$section_list_id,$template_id = 0,$is_custom = 0){
297 - $this->saveCommonHtml($html,$source,$source_id,$template_id);//保存头部底部 297 + $type = $this->getCustomizedType($source, $source_id);//获取定制界面类型
  298 + //查看当前页面是否定制,是否开启可视化
  299 + $page_array = (array)$this->user['is_visualization']->page_array;//获取所有定制界面
  300 + if (in_array($type, $page_array)) {//是定制界面
  301 +
  302 +
  303 + }
  304 + //保存头部底部
  305 + $this->saveCommonHtml($html,$source,$source_id,$template_id);
298 $templateInfo = $this->webTemplateInfo($template_id,$source,$source_id,$is_custom); 306 $templateInfo = $this->webTemplateInfo($template_id,$source,$source_id,$is_custom);
299 $handleInfo = $this->handleTemplateParam($html); 307 $handleInfo = $this->handleTemplateParam($html);
300 if($templateInfo === false){ 308 if($templateInfo === false){
@@ -311,8 +319,22 @@ class BTemplateLogic extends BaseLogic @@ -311,8 +319,22 @@ class BTemplateLogic extends BaseLogic
311 ]; 319 ];
312 $this->model->edit($data,['id'=>$templateInfo['id']]); 320 $this->model->edit($data,['id'=>$templateInfo['id']]);
313 } 321 }
  322 + return $this->success();
314 } 323 }
315 324
  325 + /**
  326 + * @remark :定制项目处理数据
  327 + * @name :saveCustomizedHtml
  328 + * @author :lyh
  329 + * @method :post
  330 + * @time :2023/12/15 9:38
  331 + */
  332 + public function saveCustomizedHtml($source,$source_id)
  333 + {
  334 +
  335 +
  336 + return true;
  337 + }
316 338
317 /** 339 /**
318 * @remark :保存公共头部底部 340 * @remark :保存公共头部底部