作者 lyh

gx

@@ -108,7 +108,7 @@ class BTemplateLogic extends BaseLogic @@ -108,7 +108,7 @@ class BTemplateLogic extends BaseLogic
108 //兼容老数据 108 //兼容老数据
109 $commonTemplateModel = new BTemplateCommon(); 109 $commonTemplateModel = new BTemplateCommon();
110 $commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id']]); 110 $commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id']]);
111 - if($commonInfo === false){ 111 + if($commonInfo !== false){
112 $TemplateInfo['html'] = $commonInfo['head_css'].$TemplateInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other']. 112 $TemplateInfo['html'] = $commonInfo['head_css'].$TemplateInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other'].
113 $commonInfo['head_html'].$TemplateInfo['main_html'].$commonInfo['footer_html']; 113 $commonInfo['head_html'].$TemplateInfo['main_html'].$commonInfo['footer_html'];
114 } 114 }