作者 lyh

gx脚本demo

@@ -72,7 +72,7 @@ class InitHtmlLogic extends BaseLogic @@ -72,7 +72,7 @@ class InitHtmlLogic extends BaseLogic
72 $bTemplateComModel = new BTemplateCom(); 72 $bTemplateComModel = new BTemplateCom();
73 $otherInfo = $bTemplateComModel->read(['source'=>$headComInfo['source'],'common_type'=>BTemplate::COMMON_OTHER,'is_list'=>$headComInfo['is_list'],'is_custom'=>$headComInfo['is_custom']]); 73 $otherInfo = $bTemplateComModel->read(['source'=>$headComInfo['source'],'common_type'=>BTemplate::COMMON_OTHER,'is_list'=>$headComInfo['is_list'],'is_custom'=>$headComInfo['is_custom']]);
74 if($otherInfo === false){ 74 if($otherInfo === false){
75 - $this->fail('获取失败,请联系管理员'); 75 + $this->fail('获取失败,请联系管理员2');
76 } 76 }
77 $footerComInfo = $this->getFooterComHtml($condition,$source,$is_list,$is_custom,$template_id); 77 $footerComInfo = $this->getFooterComHtml($condition,$source,$is_list,$is_custom,$template_id);
78 $data = ['head_html'=>$headComInfo['html'] ?? '', 'head_style'=>$headComInfo['html_style'] ?? '', 'other'=>$otherInfo['html'] ?? '', 78 $data = ['head_html'=>$headComInfo['html'] ?? '', 'head_style'=>$headComInfo['html_style'] ?? '', 'other'=>$otherInfo['html'] ?? '',
@@ -97,7 +97,7 @@ class InitHtmlLogic extends BaseLogic @@ -97,7 +97,7 @@ class InitHtmlLogic extends BaseLogic
97 //取默认公共的 97 //取默认公共的
98 $headComInfo = $bTemplateComModel->read(['source'=>BTemplate::SOURCE_COM,'common_type'=>BTemplate::COMMON_HEAD]); 98 $headComInfo = $bTemplateComModel->read(['source'=>BTemplate::SOURCE_COM,'common_type'=>BTemplate::COMMON_HEAD]);
99 if($headComInfo === false){ 99 if($headComInfo === false){
100 - $this->fail('获取失败,请联系管理员'); 100 + $this->fail('获取失败,请联系管理员1');
101 } 101 }
102 } 102 }
103 return $this->success($headComInfo); 103 return $this->success($headComInfo);
@@ -118,7 +118,7 @@ class InitHtmlLogic extends BaseLogic @@ -118,7 +118,7 @@ class InitHtmlLogic extends BaseLogic
118 //取默认首页的 118 //取默认首页的
119 $footerComInfo = $bTemplateComModel->read(['source'=>BTemplate::SOURCE_COM,'common_type'=>BTemplate::COMMON_FOOTER]); 119 $footerComInfo = $bTemplateComModel->read(['source'=>BTemplate::SOURCE_COM,'common_type'=>BTemplate::COMMON_FOOTER]);
120 if($footerComInfo === false){ 120 if($footerComInfo === false){
121 - $this->fail('获取失败,请联系管理员'); 121 + $this->fail('获取失败,请联系管理员3');
122 } 122 }
123 } 123 }
124 return $this->success($footerComInfo); 124 return $this->success($footerComInfo);