作者 lyh

gx

@@ -573,7 +573,7 @@ class BTemplateLogic extends BaseLogic @@ -573,7 +573,7 @@ class BTemplateLogic extends BaseLogic
573 $bTemplateMainModel = new BTemplateMain(); 573 $bTemplateMainModel = new BTemplateMain();
574 $mainInfo = $bTemplateMainModel->read(['project_id'=>$this->user['project_id'],'type'=>$this->param['type']]); 574 $mainInfo = $bTemplateMainModel->read(['project_id'=>$this->user['project_id'],'type'=>$this->param['type']]);
575 if($mainInfo === false){ 575 if($mainInfo === false){
576 - $main_html = "<main>{$this->getModule($type)}</main>"; 576 + $main_html = "<main>{$this->getModule($this->param['type'])}</main>";
577 $main_style = "<style id='globalsojs-styles'></style>"; 577 $main_style = "<style id='globalsojs-styles'></style>";
578 }else{ 578 }else{
579 $main_html = $mainInfo['main_html']; 579 $main_html = $mainInfo['main_html'];