正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -84,13 +84,13 @@ class BTemplateLogic extends BaseLogic | @@ -84,13 +84,13 @@ 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代码 | 87 | if($templateInfo['type'] == BTemplate::ALL_HTML){//返回整个html代码 |
| 89 | $type = $this->getCustomizedType($source, $source_id);//定制获取头部底部类型 | 88 | $type = $this->getCustomizedType($source, $source_id);//定制获取头部底部类型 |
| 90 | $commonInfo = $this->getCommonPage(0,$this->user['project_id'],$type);//获取定制头部 | 89 | $commonInfo = $this->getCommonPage(0,$this->user['project_id'],$type);//获取定制头部 |
| 91 | $html = $this->handleAllHtml($commonInfo,$templateInfo['html']); | 90 | $html = $this->handleAllHtml($commonInfo,$templateInfo['html']); |
| 92 | return $this->success(['html'=>$html,'template_id'=>$template_id]); | 91 | return $this->success(['html'=>$html,'template_id'=>$template_id]); |
| 93 | } | 92 | } |
| 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']. |
| 96 | $commonInfo['head_html'].$mainInfo['main_html'].$commonInfo['footer_html']; | 96 | $commonInfo['head_html'].$mainInfo['main_html'].$commonInfo['footer_html']; |
-
请 注册 或 登录 后发表评论