作者 lyh

gx

@@ -106,7 +106,7 @@ class BTemplateLogic extends BaseLogic @@ -106,7 +106,7 @@ class BTemplateLogic extends BaseLogic
106 $TemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']]); 106 $TemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']]);
107 }else{ 107 }else{
108 $commonTemplateModel = new BTemplateCommon(); 108 $commonTemplateModel = new BTemplateCommon();
109 - $commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id'],'type'=>$source]); 109 + $commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id'],'type'=>1]);
110 if($commonInfo !== false){ 110 if($commonInfo !== false){
111 $TemplateInfo['html'] = $commonInfo['head_css'].$TemplateInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other']. 111 $TemplateInfo['html'] = $commonInfo['head_css'].$TemplateInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other'].
112 $commonInfo['head_html'].$TemplateInfo['main_html'].$commonInfo['footer_html']; 112 $commonInfo['head_html'].$TemplateInfo['main_html'].$commonInfo['footer_html'];