作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -235,7 +235,7 @@ class BTemplateLogic extends BaseLogic @@ -235,7 +235,7 @@ class BTemplateLogic extends BaseLogic
235 $bTemplateMainModel = new BTemplateMain(); 235 $bTemplateMainModel = new BTemplateMain();
236 $mainInfo = $bTemplateMainModel->read(['project_id'=>$this->user['project_id'],'type'=>$type]); 236 $mainInfo = $bTemplateMainModel->read(['project_id'=>$this->user['project_id'],'type'=>$type]);
237 if($mainInfo === false){ 237 if($mainInfo === false){
238 - $data['main_html'] = $this->getModule($type); 238 + $data['main_html'] = $this->getModule($type,$is_custom);
239 $data['main_css'] = "<style id='globalsojs-styles'></style>"; 239 $data['main_css'] = "<style id='globalsojs-styles'></style>";
240 }else{ 240 }else{
241 $data['main_html'] = $mainInfo['main_html']; 241 $data['main_html'] = $mainInfo['main_html'];
@@ -622,9 +622,9 @@ class BTemplateLogic extends BaseLogic @@ -622,9 +622,9 @@ class BTemplateLogic extends BaseLogic
622 * @time :2023/7/27 15:08 622 * @time :2023/7/27 15:08
623 */ 623 */
624 public function getModule($type,$is_custom){ 624 public function getModule($type,$is_custom){
625 -// if($is_custom == BTemplate::SOURCE_CUSTOM){  
626 -// $type == BTemplate::TYPE_CUSTOM_DETAIL;  
627 -// } 625 + if($is_custom == BTemplate::SOURCE_CUSTOM){
  626 + $type == BTemplate::TYPE_CUSTOM_DETAIL;
  627 + }
628 $mainModel = new TemplateTypeMain(); 628 $mainModel = new TemplateTypeMain();
629 $info = $mainModel->read(['type'=>$type]); 629 $info = $mainModel->read(['type'=>$type]);
630 return $info['main_html']; 630 return $info['main_html'];