正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -383,10 +383,9 @@ class BTemplateLogic extends BaseLogic | @@ -383,10 +383,9 @@ class BTemplateLogic extends BaseLogic | ||
| 383 | * @time :2023/12/13 17:05 | 383 | * @time :2023/12/13 17:05 |
| 384 | */ | 384 | */ |
| 385 | public function saveCommonHtml($html,$source,$is_list,$template_id,$is_custom){ | 385 | public function saveCommonHtml($html,$source,$is_list,$template_id,$is_custom){ |
| 386 | - if($template_id != 0){ | ||
| 387 | - $type = $this->getType($source,$is_list,$is_custom);//获取头部类型1-9(首页到自定义页面) | ||
| 388 | - }else{ | ||
| 389 | - $type = $this->getCustomizedType($source,$is_list); | 386 | + $type = $this->getType($source,$is_list,$is_custom);//获取头部类型1-9(首页到自定义页面) |
| 387 | + if($template_id == 0){//定制页面默认为独立头部 | ||
| 388 | + $type = $this->getCustomizedType($source,$is_list);//定制默认独立头部 | ||
| 390 | } | 389 | } |
| 391 | $templateCommonModel = new BTemplateCommon(); | 390 | $templateCommonModel = new BTemplateCommon(); |
| 392 | $commonInfo = $templateCommonModel->read(['template_id'=>$template_id,'project_id'=>$this->user['project_id'],'type'=>$type]);//查看当前头部是否存在 | 391 | $commonInfo = $templateCommonModel->read(['template_id'=>$template_id,'project_id'=>$this->user['project_id'],'type'=>$type]);//查看当前头部是否存在 |
-
请 注册 或 登录 后发表评论