作者 lyh

gx

@@ -65,6 +65,10 @@ class CustomTemplateLogic extends BaseLogic @@ -65,6 +65,10 @@ class CustomTemplateLogic extends BaseLogic
65 * @time :2024/4/29 16:53 65 * @time :2024/4/29 16:53
66 */ 66 */
67 public function getTemplateComHtml($html,$html_style){ 67 public function getTemplateComHtml($html,$html_style){
  68 + if(empty($html)){
  69 + $html = "<main></main>";
  70 + $html_style = "<style id='globalsojs-styles'></style>";
  71 + }
68 $headComInfo = $this->getHeadComHtml(['common_type'=>BTemplate::COMMON_HEAD]); 72 $headComInfo = $this->getHeadComHtml(['common_type'=>BTemplate::COMMON_HEAD]);
69 $bTemplateComModel = new BTemplateCom(); 73 $bTemplateComModel = new BTemplateCom();
70 $condition['common_type'] = BTemplate::COMMON_OTHER; 74 $condition['common_type'] = BTemplate::COMMON_OTHER;
@@ -343,7 +343,7 @@ class InitHtmlLogic extends BaseLogic @@ -343,7 +343,7 @@ class InitHtmlLogic extends BaseLogic
343 */ 343 */
344 public function getCustomizeTemplateComHtml($type,$is_custom,$is_list,$template_id = 0){ 344 public function getCustomizeTemplateComHtml($type,$is_custom,$is_list,$template_id = 0){
345 $data = ['head_html'=>'','head_style'=>'','footer_html'=>'','footer_style'=>'','other'=>'']; 345 $data = ['head_html'=>'','head_style'=>'','footer_html'=>'','footer_style'=>'','other'=>''];
346 - $param = ['template_id'=>$template_id,'type'=>$type,'is_custom'=>$is_custom,'is_list'=>$is_list]; 346 + $param = ['template_id'=>$template_id,'source'=>$type,'is_custom'=>$is_custom,'is_list'=>$is_list];
347 $commonTemplateModel = new BTemplateCom(); 347 $commonTemplateModel = new BTemplateCom();
348 $commonList = $commonTemplateModel->list($param); 348 $commonList = $commonTemplateModel->list($param);
349 if(!empty($commonList)){ 349 if(!empty($commonList)){