正在显示
1 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -84,12 +84,12 @@ class BTemplateLogic extends BaseLogic | @@ -84,12 +84,12 @@ class BTemplateLogic extends BaseLogic | ||
| 84 | $mainInfo = $this->getCommonMain($source,$source_id,$is_custom);//获取中间部分代码 | 84 | $mainInfo = $this->getCommonMain($source,$source_id,$is_custom);//获取中间部分代码 |
| 85 | }else{ | 85 | }else{ |
| 86 | $mainInfo = ['main_html'=>$templateInfo['main_html'], 'main_css'=>$templateInfo['main_css']]; | 86 | $mainInfo = ['main_html'=>$templateInfo['main_html'], 'main_css'=>$templateInfo['main_css']]; |
| 87 | - } | ||
| 88 | - if($templateInfo['type'] == BTemplate::ALL_HTML){//返回整个html代码 | ||
| 89 | - $type = $this->getCustomizedType($source, $source_id);//定制获取头部底部类型 | ||
| 90 | - $commonInfo = $this->getCommonPage(0,$this->user['project_id'],$type);//获取定制头部 | ||
| 91 | - $html = $this->handleAllHtml($commonInfo,$templateInfo['html']); | ||
| 92 | - return $this->success(['html'=>$html,'template_id'=>$template_id]); | 87 | + if($templateInfo['type'] == BTemplate::ALL_HTML){//返回整个html代码 |
| 88 | + $type = $this->getCustomizedType($source, $source_id);//定制获取头部底部类型 | ||
| 89 | + $commonInfo = $this->getCommonPage(0,$this->user['project_id'],$type);//获取定制头部 | ||
| 90 | + $html = $this->handleAllHtml($commonInfo,$templateInfo['html']); | ||
| 91 | + return $this->success(['html'=>$html,'template_id'=>$template_id]); | ||
| 92 | + } | ||
| 93 | } | 93 | } |
| 94 | $commonInfo = $this->getCommonPage($source,$source_id,$template_id);//获取头部 | 94 | $commonInfo = $this->getCommonPage($source,$source_id,$template_id);//获取头部 |
| 95 | $html = $commonInfo['head_css'].$mainInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other']. | 95 | $html = $commonInfo['head_css'].$mainInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other']. |
-
请 注册 或 登录 后发表评论